mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 抽离颜色列表组件
This commit is contained in:
@@ -16,6 +16,4 @@ export interface DesignStateType {
|
||||
//色号
|
||||
appTheme: string
|
||||
appThemeDetail: AppThemeColorType | null
|
||||
//系统内置风格
|
||||
appThemeList: AppThemeColorType[]
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import { ThemeEnum } from '@/enums/styleEnum'
|
||||
|
||||
const { GO_DESIGN_STORE } = StorageEnum
|
||||
|
||||
const { darkTheme, appTheme, appThemeList, appThemeDetail } = theme
|
||||
const { darkTheme, appTheme, appThemeDetail } = theme
|
||||
|
||||
const storageDesign = getLocalStorage(GO_DESIGN_STORE)
|
||||
|
||||
@@ -22,8 +22,6 @@ export const useDesignStore = defineStore({
|
||||
// 颜色色号
|
||||
appTheme,
|
||||
appThemeDetail,
|
||||
// 颜色列表
|
||||
appThemeList,
|
||||
},
|
||||
getters: {
|
||||
getDarkTheme(e): boolean {
|
||||
@@ -34,9 +32,6 @@ export const useDesignStore = defineStore({
|
||||
},
|
||||
getAppThemeDetail(): AppThemeColorType | null {
|
||||
return this.appThemeDetail
|
||||
},
|
||||
getAppThemeList(): AppThemeColorType[] {
|
||||
return this.appThemeList
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
||||
Reference in New Issue
Block a user