From 15e26ff27a40f477f600b4d1f973bd36d76cceca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=8B=A4=E6=B0=91?= Date: Tue, 20 May 2025 19:55:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor(app):=20=E9=87=8D=E6=9E=84=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E8=B7=B3=E8=BD=AC=E9=80=BB=E8=BE=91=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=BD=91=E9=A1=B5=E8=A7=86=E5=9B=BE-=20=E9=87=8D?= =?UTF-8?q?=E6=9E=84=E4=BA=86=20HomeView=20=E4=B8=AD=E7=9A=84=E8=BD=AE?= =?UTF-8?q?=E6=92=AD=E5=9B=BE=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6=E5=A4=84?= =?UTF-8?q?=E7=90=86=E9=80=BB=E8=BE=91=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E7=83=AD=E9=97=A8=E6=96=B0=E9=97=BB=E8=B7=B3=E8=BD=AC=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=20-=20=E4=BC=98=E5=8C=96=E4=BA=86=20XWebview=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E9=A1=B5=E9=9D=A2=E5=85=B3=E9=97=AD=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=EF=BC=8C=E7=A1=AE=E4=BF=9D=E7=A7=BB=E9=99=A4=E6=89=80?= =?UTF-8?q?=E6=9C=89=E6=B6=88=E6=81=AF=E7=9B=91=E5=90=AC=E5=99=A8=20-=20?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=BA=86=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84?= =?UTF-8?q?=20XWebHelper=20=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/ets/pages/XWebview.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/ets/pages/XWebview.ets b/src/main/ets/pages/XWebview.ets index 062b521..50aa8f0 100644 --- a/src/main/ets/pages/XWebview.ets +++ b/src/main/ets/pages/XWebview.ets @@ -61,6 +61,7 @@ export struct XWebview { if (this.closeTag !== undefined) { SZYXLocalStorageHelper.storage.setOrCreate(SZYXLocalStorageKeys.XWebViewCLose, this.closeTag) } + XWebManager.removeOnMessageToWeb(this._uuidToHtml) XWebManager.removeOnMessage(this._uuid) XWebManager.removeOnMessageToHtml(this._uuidToHtml) if (this._uuidToHtml) { @@ -71,7 +72,6 @@ export struct XWebview { } catch (error) { console.error(`ErrorCode: ${(error as BusinessError).code}, Message: ${(error as BusinessError).message}`); } - // this.controller.rele } onBackPress(): boolean | void {