other components... (2)

This commit is contained in:
Paolo Arena
2021-09-16 21:08:02 +02:00
parent fcc4f61f07
commit f351673917
276 changed files with 17183 additions and 3371 deletions

View File

@@ -0,0 +1,37 @@
import { defineComponent, ref, onMounted } from 'vue'
import { IMyPage } from 'model'
import { useGlobalStore } from '@store/globalStore'
import { CImgText } from '@/components/CImgText'
import { CCard } from '@/components/CCard'
import { CMyPage } from '@/components/CMyPage'
import { CTitleBanner } from '@/components/CTitleBanner'
export default defineComponent({
name: 'CMyInnerPage',
props: {
path: {
type: String,
required: true,
},
},
components: { CImgText, CCard, CMyPage, CTitleBanner },
setup(props) {
// const heightimg
// const imgback
const rec = ref(<IMyPage | undefined>{})
const globalStore = useGlobalStore()
function mounted() {
// console.log('$route.path', $route.path)
rec.value = globalStore.getPage(props.path)
console.log(rec)
}
onMounted(mounted)
return {
rec,
}
},
})