From 07ed2e918147e07997bc05bdb28d400a2cf5edef Mon Sep 17 00:00:00 2001 From: shutao Date: Thu, 6 Jun 2024 17:58:48 +0800 Subject: [PATCH] =?UTF-8?q?update=20theme-change.uvue=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=20this.res.appTheme=E8=B5=8B=E5=80=BC=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/theme-change/theme-change.uvue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/API/theme-change/theme-change.uvue b/pages/API/theme-change/theme-change.uvue index d3499d31..c0f226bf 100644 --- a/pages/API/theme-change/theme-change.uvue +++ b/pages/API/theme-change/theme-change.uvue @@ -80,8 +80,8 @@ uni.getSystemInfo({ success: (res:GetSystemInfoResult) => { this.osTheme = res.osTheme! - this.appTheme = res.appTheme! - this.current = this.items.indexOf(this.appTheme) + this.appTheme = res.appTheme == "auto" ? res.osTheme! : res.appTheme! + this.current = this.items.indexOf(res.appTheme!) } }) this.osThemeChangeId = this.bindOsThemeChange() -- GitLab