Skip to content

Commit e26fea2

Browse files
ljt990218CharleeWa
authored andcommitted
fix: remove component :key binding
1 parent cf46fb9 commit e26fea2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ const mode = computed(() => {
3434
<template>
3535
<van-config-provider :theme="mode">
3636
<nav-bar />
37-
<router-view v-slot="{ Component, route }">
37+
<router-view v-slot="{ Component }">
3838
<section class="app-wrapper">
3939
<keep-alive :include="keepAliveRouteNames">
40-
<component :is="Component" :key="route.name" />
40+
<component :is="Component" />
4141
</keep-alive>
4242
</section>
4343
</router-view>

0 commit comments

Comments
 (0)