提交 fb772336 编写于 作者: W wang-xupeng2

revise api

Signed-off-by: Nwang-xupeng2 <wangxupeng2@huawei.com>
上级 989e512d
......@@ -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)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册