fix: null component

This commit is contained in:
MoreStrive
2024-07-05 11:02:04 +07:00
parent 5889e9af0e
commit a5f9ff7bac
30 changed files with 96 additions and 20 deletions
@@ -44,7 +44,11 @@ const GET_PROPS = computed(() => {
</script>
<template>
<component :is="definedDynamicPageLayout[getCurrentLayout]" v-bind="GET_PROPS()">
<component
v-if="definedDynamicPageLayout[getCurrentLayout]"
:is="definedDynamicPageLayout[getCurrentLayout]"
v-bind="GET_PROPS()"
>
<slot />
</component>
</template>