提交 cb07be55 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

修复 theme-change 示例语法报错

上级 d9f88214
......@@ -58,7 +58,7 @@
},
radioChange(e : UniRadioGroupChangeEvent) {
const theme = e.detail.value
setAppTheme(theme)
this.setAppTheme(theme)
uni.showToast({
icon: 'none',
title: '当前选中:'+theme,
......@@ -84,8 +84,8 @@
this.current = this.items.indexOf(this.appTheme)
}
})
this.osThemeChangeId = bindOsThemeChange()
this.appThemeChangeId = bindAppThemeChange()
this.osThemeChangeId = this.bindOsThemeChange()
this.appThemeChangeId = this.bindAppThemeChange()
},
onUnload() {
//注销监听
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册