diff --git a/ruoyi-ui/src/layout/components/Settings/index.vue b/ruoyi-ui/src/layout/components/Settings/index.vue index 3aa5c65dc..779ab64a4 100644 --- a/ruoyi-ui/src/layout/components/Settings/index.vue +++ b/ruoyi-ui/src/layout/components/Settings/index.vue @@ -61,7 +61,7 @@

系统布局配置

- 开启 Tags-Views + 开启页签
@@ -75,6 +75,14 @@ +
+ 标签页样式 + + 卡片 + 谷歌 + +
+
固定 Header @@ -163,6 +171,17 @@ export default { }) } }, + tagsViewStyle: { + get() { + return this.$store.state.settings.tagsViewStyle + }, + set(val) { + this.$store.dispatch('settings/changeSetting', { + key: 'tagsViewStyle', + value: val + }) + } + }, sidebarLogo: { get() { return this.$store.state.settings.sidebarLogo @@ -256,6 +275,7 @@ export default { "navType":${this.navType}, "tagsView":${this.tagsView}, "tagsIcon":${this.tagsIcon}, + "tagsViewStyle":"${this.tagsViewStyle}", "tagsViewPersist":${this.tagsViewPersist}, "fixedHeader":${this.fixedHeader}, "sidebarLogo":${this.sidebarLogo}, diff --git a/ruoyi-ui/src/layout/components/TagsView/index.vue b/ruoyi-ui/src/layout/components/TagsView/index.vue index 2bdbef450..5e2e3c657 100644 --- a/ruoyi-ui/src/layout/components/TagsView/index.vue +++ b/ruoyi-ui/src/layout/components/TagsView/index.vue @@ -1,5 +1,5 @@