[vuex] unknown action type: xx/xxx
刚开始报错:[vuex] unknown action type: xx上网找解决方法说因为使用了modules,所以要修改路径:方式1:this.$store.dispatch('模块名/action名', 参数)方式2:methods: { ...mapActions('模块名', ['xxx']), ...mapActions('模块名',{'新名字': 'xxx'})}但是使用了上面写法却依旧报错:[vuex] unknown action type: xx/x
原创
2021-08-21 22:06:21 ·
758 阅读 ·
0 评论