调整配置文件默认灰度不生效问题 (#1795)
修复:在默认配置config.json文件修改灰色模式后,启动项目后不生效问题。 --------- Co-authored-by: zsc1003 <11476303+zsc1003@user.noreply.gitee.com> Co-authored-by: Isaacedvr1003 <152384462+Isaacedvr1003@users.noreply.github.com>
This commit is contained in:
parent
f23cd22110
commit
b628bd7769
|
@ -121,13 +121,14 @@ export const useAppStore = defineStore('app', () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const toggleSideModel= (e) =>{
|
const toggleSideModel= (e) =>{
|
||||||
config.side_mode = e
|
config.side_mode = e
|
||||||
}
|
}
|
||||||
|
|
||||||
if(config.darkMode === 'auto'){
|
if(config.darkMode === 'auto'){
|
||||||
toggleDarkModeAuto()
|
toggleDarkModeAuto()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toggleGrey(config.grey)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
theme,
|
theme,
|
||||||
|
|
Loading…
Reference in New Issue