unknown mutation type: plan/SET_PLAN_INFO 以及多种方式调用分模块的mutaion

通过module分类管理 store时 调用mutation 出现错误 原因:export 时命名空间写错,应该是namespaced:true,只有命名空间公开,才能用plan/SET_PLAN_INFO来调用 2、页面中调用时,有多种调用方式 a、直接调用 this.$store.commit(‘plan/SET_PLAN_INFO’) b、引入mapMutations       在需要调用
相关文章
相关标签/搜索