装起全部商城菜单

This commit is contained in:
2022-04-21 18:07:40 +08:00
parent 1b6f8f0ed9
commit 05fdb1d9e7
436 changed files with 50845 additions and 63 deletions
+6 -1
View File
@@ -17,6 +17,11 @@ const getters = {
defaultRoutes:state => state.permission.defaultRoutes,
sidebarRouters:state => state.permission.sidebarRouters,
// 数据字典
dict_datas: state => state.dict.dictDatas
dict_datas: state => state.dict.dictDatas,
//画布
terminal: state => state.container.terminal,
activeComponent: state => state.container.activeComponent,
componentsData: state => state.container.componentsData,
}
export default getters
+22
View File
@@ -0,0 +1,22 @@
const container = {
state: {
terminal: 3, // 画布选择的设备
activeComponent: {}, // 选中模板数据
componentsData: [] // 模板组件数据
},
mutations: {
SET_TERMINAL: (state, terminal) => {
state.terminal = terminal
},
SET_ACTIVECOMPONENT: (state, activeComponent) => {
state.activeComponent = activeComponent
},
SET_COMPONENTSDATA: (state, componentsData) => {
state.componentsData = componentsData
}
}
}
console.log("333333333333333")
export default container