快速入门
在使用vue-cil构建vue项目的时候就可以选择vuex进行安装
安装结束后会创建如下目录

然后store文件中我们在state中加上
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
count:0
},
getters: {
},
mutations: {
},
actions: {
},
modules: {
}
})
2023/7/19大约 2 分钟
