Browse Source

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

* faet: set default theme to `auto`
pull/3645/head
真心 10 months ago committed by GitHub
parent
commit
1a9182bfde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      backend/init/migration/migrations/init.go
  2. 2
      frontend/src/store/index.ts

2
backend/init/migration/migrations/init.go

@ -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
}

2
frontend/src/store/index.ts

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

Loading…
Cancel
Save