未验证 提交 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 {
this.loadedResource=event.url
})
.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+""
})
.onRefreshAccessedHistory((event)=>{
......@@ -611,12 +617,6 @@ struct Index {
if(this.enterPageEnd){
Utils.emitEvent(this.newScale,97)
this.enterPageEnd=false
}else if(this.isProgressFinish){
console.info("isProgressFinish==>")
if(this.progress="100"){
Utils.emitEvent(this.progress,114)
this.isProgressFinish=false
}
}
})
.onConsole((event) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册