一.在store 文件夹下创建 index.js a.js 二.将store引入到app.vue中 在app.vue挂载就能显示数据 三.在home文件夹下index.vue中使用 导入vuex 页面中使用