refactor: ♻️ 界面设置页面重构,抽离逻辑 #96

This commit is contained in:
LOG1997
2025-12-11 23:18:10 +08:00
parent bfc593fa8e
commit c9efd62e34
14 changed files with 756 additions and 430 deletions

View File

@@ -127,6 +127,10 @@ export const useGlobalConfig = defineStore('global', {
},
},
actions: {
// 设置全局配置
setGlobalConfig(data: any) {
this.globalConfig = data
},
// 设置rowCount
setRowCount(rowCount: number) {
this.globalConfig.rowCount = rowCount
@@ -137,9 +141,8 @@ export const useGlobalConfig = defineStore('global', {
},
// 设置主题
setTheme(theme: any) {
const { name, detail } = theme
const { name } = theme
this.globalConfig.theme.name = name
this.globalConfig.theme.detail = detail
},
// 设置卡片颜色
setCardColor(cardColor: string) {