From fb772336fcaf0990a6f18b8d863f6aee37bfa164 Mon Sep 17 00:00:00 2001 From: wang-xupeng2 Date: Tue, 14 Feb 2023 19:18:03 +0800 Subject: [PATCH] revise api Signed-off-by: wang-xupeng2 --- .../entry/src/main/ets/MainAbility/pages/web.ets | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arkui/ace_ets_web_dev_three/entry/src/main/ets/MainAbility/pages/web.ets b/arkui/ace_ets_web_dev_three/entry/src/main/ets/MainAbility/pages/web.ets index e6ad40731..42902907e 100644 --- a/arkui/ace_ets_web_dev_three/entry/src/main/ets/MainAbility/pages/web.ets +++ b/arkui/ace_ets_web_dev_three/entry/src/main/ets/MainAbility/pages/web.ets @@ -85,7 +85,7 @@ struct Index { case "emitLoadUrl":{ try { setTimeout(()=>{ - this.controller.loadUrl($rawfile("index.html")); + this.controller.loadUrl("file:///data/storage/el1/bundle/phone/resources/rawfile/index.html"); setTimeout(()=>{ let title = this.controller.getTitle(); Utils.emitEvent(title,1) @@ -163,7 +163,7 @@ struct Index { this.controller.onInactive(); setTimeout(()=>{ setTimeout(()=>{ - this.controller.loadUrl("resource://rawfile/index.html") + this.controller.loadUrl("file:///data/storage/el1/bundle/phone/resources/rawfile/index.html") },3000) var title4 = this.controller.getTitle(); Utils.emitEvent(title4,7) @@ -276,7 +276,7 @@ struct Index { } case "emitSearchAllAsync":{ try { - this.controller.loadUrl("resource://rawfile/index.html") + this.controller.loadUrl("file:///data/storage/el1/bundle/phone/resources/rawfile/index.html") setTimeout(()=>{ this.controller.searchAllAsync("首页"); },3000) @@ -570,7 +570,6 @@ struct Index { .onTouchIconUrlReceived((event) => { console.log('onTouchIconUrlReceived:' + JSON.stringify(event)) }) - .pinchSmooth(true) } } -- GitLab