refactor(app): extract page logic into composable drivers

This commit is contained in:
skytek_xinliang
2026-05-19 16:38:08 +08:00
parent 2b780a12c2
commit 51fbbd7101
13 changed files with 576 additions and 692 deletions
+7 -10
View File
@@ -1,13 +1,10 @@
<template>
<v-sheet height="100%" width="100%">
{{ fncId }}
</v-sheet>
</template>
<script setup lang="ts">
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import PageFunction from '@/components/pages/PageFunction.vue'
import { useFunctionPage } from '@/composables/page-drivers/useFunctionPage'
const route = useRoute()
const fncId = computed(() => String(route.params.fncId ?? ''))
const { pageModel } = useFunctionPage()
</script>
<template>
<PageFunction :page="pageModel" />
</template>