Merge pull request #3164 from dataease/pr@dev@fix_router-change

fix(系统配置): 修复外观配置菜单切换导致路由刷新问题
This commit is contained in:
Junjun 2022-09-23 14:29:10 +08:00 committed by GitHub
commit fcfafdd352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 :key="key" 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>