提交 07ed2e91 编写于 作者: shutao-dc's avatar shutao-dc

update theme-change.uvue 修改 this.res.appTheme赋值逻辑

上级 05003c99
...@@ -80,8 +80,8 @@ ...@@ -80,8 +80,8 @@
uni.getSystemInfo({ uni.getSystemInfo({
success: (res:GetSystemInfoResult) => { success: (res:GetSystemInfoResult) => {
this.osTheme = res.osTheme! this.osTheme = res.osTheme!
this.appTheme = res.appTheme! this.appTheme = res.appTheme == "auto" ? res.osTheme! : res.appTheme!
this.current = this.items.indexOf(this.appTheme) this.current = this.items.indexOf(res.appTheme!)
} }
}) })
this.osThemeChangeId = this.bindOsThemeChange() this.osThemeChangeId = this.bindOsThemeChange()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册