style(web): 统一辣椒红主色与菜单层级
This commit is contained in:
1 parent
3e8312ea58
commit
ba90bf9bfb
11 files changed
+185
-40
No files matched your search
@@ -67,7 +67,7 @@ export const useAppStore = defineStore('app', {
|
||||
currentSize: 'default', // 组件尺寸
|
||||
theme: {
|
||||
// 主题色
|
||||
elColorPrimary: '#409eff',
|
||||
elColorPrimary: '#c4322a',
|
||||
// 左侧菜单边框颜色
|
||||
leftMenuBorderColor: 'inherit',
|
||||
// 左侧菜单背景颜色
|
||||
@@ -343,6 +343,10 @@ export const useAppStore = defineStore('app', {
|
||||
persist: {
|
||||
afterRestore: (context) => {
|
||||
context.store.title = import.meta.env.VITE_APP_TITLE
|
||||
if (context.store.theme?.elColorPrimary !== '#c4322a') {
|
||||
context.store.setTheme({ elColorPrimary: '#c4322a' })
|
||||
context.store.setCssVarTheme()
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user