OpenHarmony开发者论坛
标题:
对web组件加载页面产生白屏问题
[打印本页]
作者:
古怪的人
时间:
2024-1-9 15:46
标题:
对web组件加载页面产生白屏问题
[md]1.描述情况,web组件配置完成后,板子显示白屏,api 9
Web({ src: this.url, controller: this.webviewController })
.darkMode(WebDarkMode.Auto)
.forceDarkAccess(true)
.javaScriptAccess(true)
.fileAccess(true)
.domStorageAccess(true)
.onlineImageAccess(true)
.width('100%')
.height('100%')
.mediaPlayGestureAccess(false)
.javaScriptProxy({
object: this.webObj,
name: "player",
methodList: Object.keys(this.webObj),
controller: this.webviewController
});
}.width('100%').height('100%')
this.webviewController.loadUrl(this.url);
日志打印跟踪
[web_delegate.cpp(operator())-(0)] webCom is null, return on line 1166
[web_delegate.cpp(operator())-(0)] propOnUrlLoadInterceptEvent is null, return on line 4028
[web_client_impl.cpp(OnHandleInterceptRequest)-(0)] OnHandleInterceptRequest url <private>
[web_client_impl.cpp(OnHandleInterceptRequest)-(0)] OnHandleInterceptRequest is empty
[/md]
作者:
论坛小助手
时间:
2024-2-2 11:52
辛苦看一下url是否正确
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5