diff --git a/ruoyi-ui/src/layout/components/Settings/index.vue b/ruoyi-ui/src/layout/components/Settings/index.vue index 1b21cb519..ff83c46ae 100644 --- a/ruoyi-ui/src/layout/components/Settings/index.vue +++ b/ruoyi-ui/src/layout/components/Settings/index.vue @@ -65,6 +65,11 @@ +
+ 持久化标签页 + +
+
显示页签图标 @@ -125,6 +130,20 @@ export default { }) } }, + tagsViewPersist: { + get() { + return this.$store.state.settings.tagsViewPersist + }, + set(val) { + this.$store.dispatch('settings/changeSetting', { + key: 'tagsViewPersist', + value: val + }) + if (!val) { + this.$cache.local.remove('tags-view-visited') + } + } + }, tagsView: { get() { return this.$store.state.settings.tagsView @@ -237,6 +256,7 @@ export default { "navType":${this.navType}, "tagsView":${this.tagsView}, "tagsIcon":${this.tagsIcon}, + "tagsViewPersist":${this.tagsViewPersist}, "fixedHeader":${this.fixedHeader}, "sidebarLogo":${this.sidebarLogo}, "dynamicTitle":${this.dynamicTitle}, diff --git a/ruoyi-ui/src/layout/components/TagsView/ScrollPane.vue b/ruoyi-ui/src/layout/components/TagsView/ScrollPane.vue index c110bf123..3dbd9aed0 100644 --- a/ruoyi-ui/src/layout/components/TagsView/ScrollPane.vue +++ b/ruoyi-ui/src/layout/components/TagsView/ScrollPane.vue @@ -5,7 +5,7 @@