diff --git a/pages/API/theme-change/theme-change.uvue b/pages/API/theme-change/theme-change.uvue index 0b7a168bafa71fa39df56bd6bd55a776c7d47728..200b935809750899c41304eb409d77ab6f7f2698 100644 --- a/pages/API/theme-change/theme-change.uvue +++ b/pages/API/theme-change/theme-change.uvue @@ -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() { //注销监听