Web Editor home made

This commit is contained in:
Surya Paolo
2022-11-17 08:10:43 +01:00
parent 711f1b515d
commit 495abc33be
77 changed files with 1742 additions and 1771 deletions

View File

@@ -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')
},
},
})