vuex如果分为几个模块,方法是在模块中的话,如果直接在组件中通过this.store.commit("模块名/方法名")才可以获取到。同理,this.$store.dispatch("模块名/方法名")。 图片1.png 图片2.png 图片3.png