Models(模块化管理模式) Vuex的模块化管理模式即是,将store 分割成若干个模块(module)。其中每个模块拥有自己的 state、mutation、action、getter。 配置 // store/index.js models:{ a:{ state:{ }, mutation{ } getters:{ }, .... } } 调用(models中的state) this.$store.state.a </