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> <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>
<div v-if="appStore.reloadFlag" :key="route.path">
<keep-alive :include="keepAliveRouteNames"> <keep-alive :include="keepAliveRouteNames">
<component :is="Component" /> <component :is="Component" v-if="appStore.reloadFlag" :key="route.path" />
</keep-alive> </keep-alive>
</div>
</transition> </transition>
</router-view> </router-view>
</template> </template>