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

修复 theme-change 示例js环境报错的问题

上级 5438935b
......@@ -46,13 +46,13 @@
methods: {
bindOsThemeChange(): number {
//注册osTheme变化监听
return uni.onOsThemeChange(function(res: OsThemeChangeResult) {
return uni.onOsThemeChange((res: OsThemeChangeResult)=> {
this.osTheme = res.osTheme
})
},
bindAppThemeChange(): number {
//注册appTheme变化监听
return uni.onAppThemeChange(function(res: AppThemeChangeResult) {
return uni.onAppThemeChange((res: AppThemeChangeResult) => {
this.appTheme = res.appTheme
})
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册