fix: parentComponent.ctx.deactivate is not a function

This commit is contained in:
Tony Yang
2025-03-30 02:29:58 +08:00
parent 7b2857b85f
commit 3a58d55019
+1 -1
View File
@@ -18,7 +18,7 @@ router.afterEach(() => {
<div style="flex: 1;">
<RouterView v-slot="{ Component }">
<KeepAlive>
<component :is="Component" v-if="$route.meta.keepAlive" />
<component :key="$route.name" :is="Component" v-if="$route.meta.keepAlive" />
</KeepAlive>
<component :is="Component" v-if="!$route.meta.keepAlive" />
</RouterView>