提交 c4b5c2a0 编写于 作者: Y yupeng

xiugai api

Signed-off-by: Nyupeng <yupeng78@huawei.com>
上级 7ec404f5
...@@ -592,7 +592,13 @@ struct Index { ...@@ -592,7 +592,13 @@ struct Index {
this.loadedResource=event.url this.loadedResource=event.url
}) })
.onProgressChange((event)=>{ .onProgressChange((event)=>{
console.info("onProgressChange==>") if(this.isProgressFinish){
console.info("isProgressFinish==>")
if(this.progress=="100"){
Utils.emitEvent(this.progress,114)
this.isProgressFinish=false
}
}
this.progress=event.newProgress+"" this.progress=event.newProgress+""
}) })
.onRefreshAccessedHistory((event)=>{ .onRefreshAccessedHistory((event)=>{
...@@ -611,12 +617,6 @@ struct Index { ...@@ -611,12 +617,6 @@ struct Index {
if(this.enterPageEnd){ if(this.enterPageEnd){
Utils.emitEvent(this.newScale,97) Utils.emitEvent(this.newScale,97)
this.enterPageEnd=false this.enterPageEnd=false
}else if(this.isProgressFinish){
console.info("isProgressFinish==>")
if(this.progress=="100"){
Utils.emitEvent(this.progress,114)
this.isProgressFinish=false
}
} }
}) })
.onConsole((event) => { .onConsole((event) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册