vueX中store对象准备 // 1.导入 vue vuex import Vue from 'vue' import Vuex from 'vuex' // 2.将 vuex 安装为 vue 的插件 Vue.use(Vuex) // 3.创建 Store 的实例对象 const store = new Vuex.Store({ // TODO: 挂载 store 模块 modules: {} }) // 4.向外共享 store 的实例对象 exprort module store 本文章单独讲解了 vuex的基本架构 以及 创建store的实例对象