摘要:
src\store\index.js import Vue from "vue"; import Vuex from 'vuex' import mutations from "./mutations"; import actions from "./actions"; import getters 阅读全文
摘要:
1 为什么要使用模块 当应用变得复杂时,store对象就会变得相当臃肿,为了解决这个问题,可以将store分割成模块(module)。而每个模块拥有自己的store mutation action getter等 2 代码 2.1 分割模块与定义模块 src\store\index.js modul 阅读全文