fix: 修复router-view页面组件因transition导致使用多个根节点告警问题
This commit is contained in:
parent
2bd85e6e60
commit
585bf4a4c4
@ -1,9 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<router-view v-slot="{ Component, route }">
|
<router-view v-slot="{ Component, route }">
|
||||||
<transition name="fade-slide" mode="out-in" appear>
|
<transition name="fade-slide" mode="out-in" appear>
|
||||||
<keep-alive :include="keepAliveRouteNames">
|
<div :key="route.path">
|
||||||
<component :is="Component" :key="route.path" />
|
<keep-alive :include="keepAliveRouteNames">
|
||||||
</keep-alive>
|
<component :is="Component" />
|
||||||
|
</keep-alive>
|
||||||
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
</router-view>
|
</router-view>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user