CheckBox, Pages, Editor

This commit is contained in:
Paolo Arena
2021-10-01 03:08:43 +02:00
parent 489c4fecc7
commit 2384e485a5
40 changed files with 413 additions and 205 deletions

View File

@@ -2,6 +2,7 @@ import { defineComponent, ref, onMounted, watch, computed } from 'vue'
import { useGlobalStore } from '@store/globalStore'
import { useRoute } from 'vue-router'
import MixinMetaTags from '@/mixins/mixin-metatags'
export default defineComponent({
name: 'Mypage',
@@ -11,9 +12,14 @@ export default defineComponent({
const route = useRoute()
const path = computed(() => route.path)
const isfinishLoading = computed(() => globalStore.finishLoading)
const { setmeta } = MixinMetaTags()
async function created() {
// console.log('this.$route.path', this.$route.path)
console.log('MyPage created')
rec.value = await globalStore.loadPage(route.path)
// console.log('mounted', this.rec)
}
@@ -25,10 +31,12 @@ export default defineComponent({
// return tools.metafunc(this)
}
onMounted(created)
created()
return {
rec,
setmeta,
isfinishLoading,
}
},
})

View File

@@ -1,7 +1,7 @@
<template>
<div>
<div v-if="isfinishLoading">
<CMyPage
:title="rec.title" :imgbackground="`public/` + rec.imgback"
:title="rec.title" :imgbackground="`` + rec.imgback"
:sizes="`max-height: ` + rec.heightimg + `px`">
<span>{{
setmeta({