提交 18acf043 编写于 作者: shutao-dc's avatar shutao-dc 提交者: hdx

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

上级 c1874c59
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册