vuex 自定义 并设置多个文件加下state mutations actions getter




1mian.js 的


vuex 自定义 并设置多个文件加下state mutations actions getter


2 vuex 的 index设置


vuex 自定义 并设置多个文件加下state mutations actions getter



3 store 默认是用的 root下边的 配置

例如 action方法 setAdminInfo

this.$store.dispatch("setAdminInfo");
如果写在 control 下边的话 这样调用用control/setAdminInfo

this.$store.dispatch("control/setAdminInfo");