revert: 撤销router-view页面组件多根节点支持
This commit is contained in:
parent
3c46d2c159
commit
c9c0c35343
@ -1,11 +1,9 @@
|
||||
<template>
|
||||
<router-view v-slot="{ Component, route }">
|
||||
<transition name="fade-slide" mode="out-in" appear>
|
||||
<div v-if="appStore.reloadFlag" :key="route.path">
|
||||
<keep-alive :include="keepAliveRouteNames">
|
||||
<component :is="Component" />
|
||||
</keep-alive>
|
||||
</div>
|
||||
<keep-alive :include="keepAliveRouteNames">
|
||||
<component :is="Component" v-if="appStore.reloadFlag" :key="route.path" />
|
||||
</keep-alive>
|
||||
</transition>
|
||||
</router-view>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user