Web Editor home made
This commit is contained in:
@@ -140,6 +140,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
},
|
||||
provinces: [],
|
||||
mygroups: [],
|
||||
selElem: {},
|
||||
editOn: false,
|
||||
}),
|
||||
|
||||
getters: {
|
||||
@@ -908,7 +910,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
})
|
||||
},
|
||||
|
||||
async loadPage(path: string) {
|
||||
async loadPage(path: string, dove?: string) {
|
||||
const userStore = useUserStore()
|
||||
|
||||
path = path.substring(1)
|
||||
@@ -919,7 +921,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
return mypage
|
||||
}
|
||||
|
||||
console.log('loadPage', path)
|
||||
// console.log(dove, '*** loadPage', path)
|
||||
|
||||
return Api.SendReq('/getpage', 'POST', { path })
|
||||
.then((res) => {
|
||||
@@ -1786,5 +1788,12 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
}
|
||||
},
|
||||
|
||||
changeVisuDrawer(path: string, edit: boolean) {
|
||||
const userStore = useUserStore()
|
||||
|
||||
if (userStore.isManager)
|
||||
tools.setCookie('EDITPAGES', edit ? '-1' : '0')
|
||||
},
|
||||
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user