一。下载vuex
在store文件夹下的index.js中 官方文档:https://vuex.vuejs.org/zh/
需要使用的页面
sotre中 mutations的调用方法
store中getters的使用