1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

faet: 设置默认主题为 auto (#3634)

* faet: set default theme to `auto`
This commit is contained in:
真心 2024-01-17 18:12:52 +08:00 committed by GitHub
parent aeb0549a9a
commit 1a9182bfde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ var AddTableSetting = &gormigrate.Migration{
if err := tx.Create(&model.Setting{Key: "Language", Value: "zh"}).Error; err != nil {
return err
}
if err := tx.Create(&model.Setting{Key: "Theme", Value: "light"}).Error; err != nil {
if err := tx.Create(&model.Setting{Key: "Theme", Value: "auto"}).Error; err != nil {
return err
}

View File

@ -18,7 +18,7 @@ export const GlobalStore = defineStore({
themeConfig: {
panelName: '',
primary: '#005EEB',
theme: 'bright',
theme: 'auto',
footer: true,
},
isFullScreen: false,