From 7143a19b3b03fca48aa745a7e9268f6ac6fab6a8 Mon Sep 17 00:00:00 2001 From: liujiake Date: Wed, 12 Feb 2025 09:45:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DFlutterWebView=E7=9A=84dispos?= =?UTF-8?q?e=E6=96=B9=E6=B3=95=EF=BC=8C=E9=81=BF=E5=85=8D=E6=9C=AA?= =?UTF-8?q?=E6=8C=89=E9=A2=84=E6=9C=9F=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liujiake --- .../components/plugin/webview/in_app_webview/FlutterWebView.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/FlutterWebView.ets b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/FlutterWebView.ets index c745bd5b..db3ccbdd 100644 --- a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/FlutterWebView.ets +++ b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/FlutterWebView.ets @@ -137,7 +137,7 @@ export class FlutterWebView extends PlatformWebView { } dispose(): void { - if (this.keepAliveId != null && this.webView != null) { + if (this.keepAliveId == null && this.webView != null) { this.webView.dispose(); this.webView = null; -- Gitee