装起全部商城菜单
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user