From b33ea72445dc8ade95de9a1330f24391ec6e6564 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 22 Mar 2026 23:29:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8C=81=E4=B9=85=E5=8C=96?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E9=A1=B5=E5=BC=80=E5=85=B3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/layout/components/Settings/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/layout/components/Settings/index.vue b/ruoyi-ui/src/layout/components/Settings/index.vue index ff83c46ae..3aa5c65dc 100644 --- a/ruoyi-ui/src/layout/components/Settings/index.vue +++ b/ruoyi-ui/src/layout/components/Settings/index.vue @@ -139,9 +139,6 @@ export default { key: 'tagsViewPersist', value: val }) - if (!val) { - this.$cache.local.remove('tags-view-visited') - } } }, tagsView: { @@ -250,6 +247,9 @@ export default { }, saveSetting() { this.$modal.loading("正在保存到本地,请稍候...") + if (!this.tagsViewPersist) { + this.$cache.local.remove('tags-view-visited') + } this.$cache.local.set( "layout-setting", `{ @@ -269,6 +269,7 @@ export default { }, resetSetting() { this.$modal.loading("正在清除设置缓存并刷新,请稍候...") + this.$cache.local.remove('tags-view-visited') this.$cache.local.remove("layout-setting") setTimeout("window.location.reload()", 1000) }