fix: null component
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -32,7 +32,11 @@ const GET_PROPS = computed(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<component :is="definedDynamicPage[getCurrentTemplate] || null" v-bind="{...(GET_PROPS()), settings: _props.settings}">
|
||||
<component
|
||||
v-if="definedDynamicPage[getCurrentTemplate]"
|
||||
:is="definedDynamicPage[getCurrentTemplate]"
|
||||
v-bind="{...(GET_PROPS()), settings: _props.settings}"
|
||||
>
|
||||
<slot />
|
||||
</component>
|
||||
</template>
|
||||
Reference in New Issue
Block a user