|
@@ -159,7 +159,7 @@ export struct XWebview {
|
|
.visibility(this.progress > 95 || this.progress == 0 ? Visibility.None : Visibility.Visible)
|
|
.visibility(this.progress > 95 || this.progress == 0 ? Visibility.None : Visibility.Visible)
|
|
.width('100%')
|
|
.width('100%')
|
|
|
|
|
|
- Web({ src: this.url ?? 'www.example.com', controller: this.controller })
|
|
|
|
|
|
+ Web({ src: this.url ?? '', controller: this.controller })
|
|
.javaScriptAccess(true)
|
|
.javaScriptAccess(true)
|
|
.javaScriptProxy({
|
|
.javaScriptProxy({
|
|
object: XWebManager.objs.get(this._uuidToHtml),
|
|
object: XWebManager.objs.get(this._uuidToHtml),
|
|
@@ -249,9 +249,7 @@ export struct XWebview {
|
|
}
|
|
}
|
|
if (this.content) {
|
|
if (this.content) {
|
|
try {
|
|
try {
|
|
- this.controller.loadData(this.content,
|
|
|
|
- "text/html",
|
|
|
|
- "UTF-8", '', '')
|
|
|
|
|
|
+ this.controller.loadData(this.content, 'text/html', 'UTF-8', " ", " ")
|
|
} catch (e) {
|
|
} catch (e) {
|
|
ToolsHelper.showAlertDialog({
|
|
ToolsHelper.showAlertDialog({
|
|
title: '警告',
|
|
title: '警告',
|