diff --git a/pages/API/theme-change/theme-change.uvue b/pages/API/theme-change/theme-change.uvue index d3499d31cc22cf31a64945d47cd0c76d6a8830d4..c0f226bf89083d243abcbd9cc0c3cd6013f3d749 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()