王士厅

fix: 系统设置暗黑模式,Web容器增加.backgroundColor(Color.White)

... ... @@ -27,6 +27,7 @@ export struct WdWebComponent {
build() {
Column() {
Web({ src: this.webUrl, controller: this.webviewControl })
.backgroundColor(Color.White)
.domStorageAccess(true)
.databaseAccess(true)
.javaScriptAccess(true)
... ...
... ... @@ -59,6 +59,7 @@ export struct WdWebLocalComponent {
controller: this.webviewControl,
renderMode: RenderMode.SYNC_RENDER
})// Web({ src: this.webResource, controller: this.webviewControl })
.backgroundColor(Color.White)
.domStorageAccess(true)
.databaseAccess(true)
.javaScriptAccess(true)
... ...
... ... @@ -73,6 +73,7 @@ struct LoginProtocolWebview {
.height(44)
if(this.isConnectNetwork){
Web({ src: this.webUrl, controller: this.webviewController })
.backgroundColor(Color.White)
.domStorageAccess(true)
.databaseAccess(true)
.javaScriptAccess(true)
... ...