From cb07be5540916c8b7a1237549543ce87cc436786 Mon Sep 17 00:00:00 2001 From: XHY Date: Thu, 23 May 2024 18:10:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20theme-change=20=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E8=AF=AD=E6=B3=95=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/theme-change/theme-change.uvue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/API/theme-change/theme-change.uvue b/pages/API/theme-change/theme-change.uvue index 0b7a168b..200b9358 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() { //注销监听 -- GitLab