refactor(app): extract page logic into composable drivers
This commit is contained in:
+7
-10
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user