From a9f8e6ccc25839b48d619a07c79ce6b880885bc1 Mon Sep 17 00:00:00 2001
From: pany <939630029@qq.com>
Date: Tue, 23 Aug 2022 15:56:20 +0800
Subject: [PATCH] refactor: Settings Component
---
src/layout/components/Settings/index.vue | 65 ++----------------------
src/store/modules/settings.ts | 27 ----------
2 files changed, 5 insertions(+), 87 deletions(-)
diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue
index 59e61f2..b218672 100644
--- a/src/layout/components/Settings/index.vue
+++ b/src/layout/components/Settings/index.vue
@@ -1,62 +1,7 @@
@@ -65,23 +10,23 @@ watch(
系统布局配置
显示标签栏
-
+
显示侧边栏 Logo
-
+
固定 Header
-
+
显示切换主题按钮
-
+
显示全屏按钮
-
+
diff --git a/src/store/modules/settings.ts b/src/store/modules/settings.ts
index 37bf717..85abce4 100644
--- a/src/store/modules/settings.ts
+++ b/src/store/modules/settings.ts
@@ -21,32 +21,5 @@ export const useSettingsStore = defineStore({
showThemeSwitch: layoutSettings.showThemeSwitch,
showScreenfull: layoutSettings.showScreenfull
}
- },
- actions: {
- changeSetting(payload: { key: string; value: any }) {
- const { key, value } = payload
- switch (key) {
- case "fixedHeader":
- this.fixedHeader = value
- break
- case "showSettings":
- this.showSettings = value
- break
- case "showSidebarLogo":
- this.showSidebarLogo = value
- break
- case "showTagsView":
- this.showTagsView = value
- break
- case "showThemeSwitch":
- this.showThemeSwitch = value
- break
- case "showScreenfull":
- this.showScreenfull = value
- break
- default:
- break
- }
- }
}
})