<div>

<transition :name="transitionName" >

<keep-alive >

<router-view :class="homeClass?'child-view ss-keep':'child-view1 ss-keep'" v-if="$route.meta.keepAlive"></router-view>

<router-view :class="homeClass?'child-view ns-keep':'child-view1 ns-keep'" v-if="!$route.meta.keepAlive" :key="'time'+new Date().getTime()"></router-view>

</keep-alive>

</transition>

</div>

Logo

前往低代码交流专区

更多推荐