提供了keepalive支持 需要导入新的数据库表

This commit is contained in:
pixel
2020-04-15 17:49:30 +08:00
parent cd0b1e0336
commit 57167b6c38
7 changed files with 61 additions and 33 deletions

View File

@@ -67,7 +67,12 @@
:to="{ path: item.path }" 暂时注释不用-->
<HistoryComponent />
<transition mode="out-in" name="el-fade-in-linear">
<router-view class="admin-box"></router-view>
<keep-alive>
<router-view v-if="$route.meta.keepAlive" class="admin-box"></router-view>
</keep-alive>
</transition>
<transition mode="out-in" name="el-fade-in-linear">
<router-view v-if="!$route.meta.keepAlive" class="admin-box"></router-view>
</transition>
</el-main>
</el-container>