From 1a9182bfdeba77f452868dec82cee27366c01593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9C=9F=E5=BF=83?= Date: Wed, 17 Jan 2024 18:12:52 +0800 Subject: [PATCH] =?UTF-8?q?faet:=20=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E4=B8=BA=20`auto`=20(#3634)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * faet: set default theme to `auto` --- backend/init/migration/migrations/init.go | 2 +- frontend/src/store/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/init/migration/migrations/init.go b/backend/init/migration/migrations/init.go index 3af26a063..ca2f469b8 100644 --- a/backend/init/migration/migrations/init.go +++ b/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 } diff --git a/frontend/src/store/index.ts b/frontend/src/store/index.ts index 423ae77ed..bd972be50 100644 --- a/frontend/src/store/index.ts +++ b/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,