revert: 撤销router-view页面组件多根节点支持

This commit is contained in:
张传龙 2022-04-21 22:45:10 +08:00
parent 3c46d2c159
commit c9c0c35343

View File

@ -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>