From 96fa681a91dfb45366407499838407615cdda5ea Mon Sep 17 00:00:00 2001 From: xlzy <1017866168@qq.com> Date: Thu, 23 Mar 2023 17:00:11 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91=E5=85=BC?= =?UTF-8?q?=E5=AE=B9formStyle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/layout/components/setting.vue | 67 ++++++++++--------- snowy-admin-web/src/store/global.js | 21 ++---- 2 files changed, 38 insertions(+), 50 deletions(-) diff --git a/snowy-admin-web/src/layout/components/setting.vue b/snowy-admin-web/src/layout/components/setting.vue index 1b6f7a21..d4272f4b 100644 --- a/snowy-admin-web/src/layout/components/setting.vue +++ b/snowy-admin-web/src/layout/components/setting.vue @@ -78,15 +78,15 @@ - - - + + + diff --git a/snowy-admin-web/src/store/global.js b/snowy-admin-web/src/store/global.js index 0d094c48..33332035 100644 --- a/snowy-admin-web/src/store/global.js +++ b/snowy-admin-web/src/store/global.js @@ -42,6 +42,8 @@ export const globalStore = defineStore({ theme: getCacheConfig('SNOWY_THEME'), // 主题颜色 themeColor: toolDataGet('SNOWY_THEME_COLOR') || config.COLOR, + // 整体表单风格 + formStyle: getCacheConfig('SNOWY_FORM_STYLE'), // 用户信息 userInfo: toolDataGet('USER_INFO') || {}, // 系统配置 @@ -72,23 +74,8 @@ export const globalStore = defineStore({ toggleConfig(key) { this[key] = !this[key] }, - toggle_SideUniqueOpen() { - this.sideUniqueOpen = !this.sideUniqueOpen - }, - toggle_LayoutTagsOpen() { - this.layoutTagsOpen = !this.layoutTagsOpen - }, - toggle_BreadcrumbOpen() { - this.breadcrumbOpen = !this.breadcrumbOpen - }, - toggle_TopHanderThemeColorOpen() { - this.topHanderThemeColorOpen = !this.topHanderThemeColorOpen - }, - toggle_TopHanderThemeColorSpread() { - this.topHanderThemeColorSpread = !this.topHanderThemeColorSpread - }, - toggle_ModuleUnfoldOpen() { - this.moduleUnfoldOpen = !this.moduleUnfoldOpen + setFormStyle(key) { + this.formStyle = key }, setUserInfo(key) { this.userInfo = key