fix(系统配置): 修复外观配置菜单切换导致路由刷新问题

This commit is contained in:
wangjiahao 2022-09-23 14:14:32 +08:00
parent ea17177c08
commit 7f0c749601

View File

@ -1,9 +1,9 @@
<template>
<div id="app">
<keep-alive>
<router-view v-if="['/dataset/index', '/system/system-settings/appearance'].includes(key)"></router-view>
<router-view v-show="['/dataset/index', '/system/system-settings/appearance'].includes(key)"></router-view>
</keep-alive>
<router-view v-if="!['/dataset/index', '/system/system-settings/appearance'].includes(key)"></router-view>
<router-view v-show="!['/dataset/index', '/system/system-settings/appearance'].includes(key)"></router-view>
<plugin-com v-show="false" ref="de-theme" component-name="ThemeSetting" />
</div>
</template>