fix: parentComponent.ctx.deactivate is not a function
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ router.afterEach(() => {
|
|||||||
<div style="flex: 1;">
|
<div style="flex: 1;">
|
||||||
<RouterView v-slot="{ Component }">
|
<RouterView v-slot="{ Component }">
|
||||||
<KeepAlive>
|
<KeepAlive>
|
||||||
<component :is="Component" v-if="$route.meta.keepAlive" />
|
<component :key="$route.name" :is="Component" v-if="$route.meta.keepAlive" />
|
||||||
</KeepAlive>
|
</KeepAlive>
|
||||||
<component :is="Component" v-if="!$route.meta.keepAlive" />
|
<component :is="Component" v-if="!$route.meta.keepAlive" />
|
||||||
</RouterView>
|
</RouterView>
|
||||||
|
|||||||
Reference in New Issue
Block a user