Animations, Policy, Toolbar Colors
This commit is contained in:
@@ -63,13 +63,22 @@ export default defineComponent({
|
||||
const { t } = useI18n()
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
const editOn = ref(false)
|
||||
const editOn = computed({
|
||||
get (): boolean {
|
||||
return !!globalStore.editOn ? globalStore.editOn : false
|
||||
},
|
||||
|
||||
set (value: boolean) {
|
||||
return globalStore.editOn = value
|
||||
}
|
||||
})
|
||||
const visuEditor = ref(false)
|
||||
const addOn = ref(false)
|
||||
const myelemVoid = ref({ _id: objectId(), active: true, type: shared_consts.ELEMTYPE.TEXT, container: '...', path: mypathin.value } as IMyElem)
|
||||
|
||||
|
||||
const selElem = ref(globalStore.selElem)
|
||||
const site = ref(globalStore.site)
|
||||
|
||||
const myelems = computed(() => {
|
||||
if (mypathin.value)
|
||||
@@ -79,7 +88,7 @@ export default defineComponent({
|
||||
})
|
||||
|
||||
function load() {
|
||||
// console.log('load', mypathin.value)
|
||||
console.log('load', mypathin.value)
|
||||
|
||||
if (mypathin.value !== '') {
|
||||
globalStore.loadPage('/' + mypathin.value, 'cmypageelem').then(ris => {
|
||||
@@ -88,7 +97,6 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
if (tools.isManager()) {
|
||||
editOn.value = tools.getCookie('EDITPAGES', '0') === '-1' ? true : false
|
||||
console.log('getcookie: ', editOn.value, mypathin.value)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user