tab 测试
This commit is contained in:
parent
cbd7809291
commit
6952d6837c
@ -9,12 +9,14 @@
|
||||
:label="item.title"
|
||||
:closable="item.closable"
|
||||
:name="item.name">
|
||||
<router-view v-slot="{ Component }">
|
||||
<transition>
|
||||
<component v-if="route.meta.keepAlive != null && route.meta.keepAlive === false" :is="Component" />
|
||||
<router-view v-slot="{ Component, route }">
|
||||
<transition name="fade" mode="out-in">
|
||||
<div>
|
||||
<component v-if="route.meta.keepAlive != null && route.meta.keepAlive === false" :is="Component" :key="route.path"/>
|
||||
<keep-alive v-else>
|
||||
<component :is="Component" />
|
||||
<component :is="Component" :key="route.path"/>
|
||||
</keep-alive>
|
||||
</div>
|
||||
</transition>
|
||||
</router-view>
|
||||
</el-tab-pane>
|
||||
|
Loading…
Reference in New Issue
Block a user