SeanChi
SeanChi
  • 发布:2018-11-01 14:41
  • 更新:2018-11-01 15:14
  • 阅读:4529

uni-app里的内置vuex无法触发mutations

分类:uni-app

如题,在store里定义了mutations,然后在某个页面

import { mapMutations } from 'vuex'
...mapMutations(['loginSuccess', 'getToken']),

调用以后报错

2018-11-01 14:41 负责人:无 分享
已邀请:
SeanChi

SeanChi (作者)

解决了,没有在main.js将store挂载到Vue.prototype上

该问题目前已经被锁定, 无法添加新回复