未验证 提交 a7e4e7fb 编写于 作者: O openharmony_ci 提交者: Gitee

!9248 【OpenHarmony 4.0.9.1】【Master】【ARKUI子系统】【TOD】【rk3568】【必现】修改onProgressChange用例

Merge pull request !9248 from yupeng/master
...@@ -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.
先完成此消息的编辑!
想要评论请 注册