mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
fix: router-view with keep-alive
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<demo-nav />
|
<demo-nav />
|
||||||
<keep-alive>
|
<router-view v-slot="{ Component }">
|
||||||
<router-view />
|
<keep-alive>
|
||||||
</keep-alive>
|
<component :is="Component" />
|
||||||
|
</keep-alive>
|
||||||
|
</router-view>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user