修改传参

This commit is contained in:
lijiarao
2021-08-27 16:07:09 +08:00
parent 768031ab73
commit b4ce240f11
4 changed files with 12 additions and 4 deletions
+9 -2
View File
@@ -18,8 +18,15 @@ export default new Vuex.Store({
enhance,
online
},
state: {},
mutations: {},
state: {
// 当前的项目
currentProjetcInfo:{}
},
mutations: {
"SET_CURRENTPROJECT":(state,info) =>{
state.currentProjetcInfo = Object.assign({},info)
}
},
actions: {},
getters
});