From 3ca1ca4b020737a1d3075531fa97672c96b0b38f Mon Sep 17 00:00:00 2001 From: XHY Date: Fri, 24 May 2024 12:58:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20theme-change=20=E7=A4=BA?= =?UTF-8?q?=E4=BE=8Bjs=E7=8E=AF=E5=A2=83=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/theme-change/theme-change.uvue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/API/theme-change/theme-change.uvue b/pages/API/theme-change/theme-change.uvue index 200b9358..ad243c72 100644 --- a/pages/API/theme-change/theme-change.uvue +++ b/pages/API/theme-change/theme-change.uvue @@ -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 }) }, -- GitLab