Showing
3 changed files
with
3 additions
and
0 deletions
| @@ -27,6 +27,7 @@ export struct WdWebComponent { | @@ -27,6 +27,7 @@ export struct WdWebComponent { | ||
| 27 | build() { | 27 | build() { |
| 28 | Column() { | 28 | Column() { |
| 29 | Web({ src: this.webUrl, controller: this.webviewControl }) | 29 | Web({ src: this.webUrl, controller: this.webviewControl }) |
| 30 | + .backgroundColor(Color.White) | ||
| 30 | .domStorageAccess(true) | 31 | .domStorageAccess(true) |
| 31 | .databaseAccess(true) | 32 | .databaseAccess(true) |
| 32 | .javaScriptAccess(true) | 33 | .javaScriptAccess(true) |
| @@ -59,6 +59,7 @@ export struct WdWebLocalComponent { | @@ -59,6 +59,7 @@ export struct WdWebLocalComponent { | ||
| 59 | controller: this.webviewControl, | 59 | controller: this.webviewControl, |
| 60 | renderMode: RenderMode.SYNC_RENDER | 60 | renderMode: RenderMode.SYNC_RENDER |
| 61 | })// Web({ src: this.webResource, controller: this.webviewControl }) | 61 | })// Web({ src: this.webResource, controller: this.webviewControl }) |
| 62 | + .backgroundColor(Color.White) | ||
| 62 | .domStorageAccess(true) | 63 | .domStorageAccess(true) |
| 63 | .databaseAccess(true) | 64 | .databaseAccess(true) |
| 64 | .javaScriptAccess(true) | 65 | .javaScriptAccess(true) |
| @@ -73,6 +73,7 @@ struct LoginProtocolWebview { | @@ -73,6 +73,7 @@ struct LoginProtocolWebview { | ||
| 73 | .height(44) | 73 | .height(44) |
| 74 | if(this.isConnectNetwork){ | 74 | if(this.isConnectNetwork){ |
| 75 | Web({ src: this.webUrl, controller: this.webviewController }) | 75 | Web({ src: this.webUrl, controller: this.webviewController }) |
| 76 | + .backgroundColor(Color.White) | ||
| 76 | .domStorageAccess(true) | 77 | .domStorageAccess(true) |
| 77 | .databaseAccess(true) | 78 | .databaseAccess(true) |
| 78 | .javaScriptAccess(true) | 79 | .javaScriptAccess(true) |
-
Please register or login to post a comment