diff --git a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebView.ets b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebView.ets index ba6fc497408032efd6ab18ac0689d69d4221df08..4053179009e46a18dd205b35616355987e780924 100644 --- a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebView.ets +++ b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebView.ets @@ -269,9 +269,10 @@ export default class InAppWebView implements InAppWebViewInterface { if (this.plugin == null) { return; } - this.curUrl = assetFilePath; + let realUrl = $rawfile("flutter_assets/" + assetFilePath) + this.curUrl = realUrl; await this.waitControllerAttached(); - this.controller.loadUrl(assetFilePath) + this.controller.loadUrl(realUrl) } getLoadUrl(): string | Resource {