diff --git a/arkui/ace_ets_web_dev/entry/src/main/ets/MainAbility/pages/web.ets b/arkui/ace_ets_web_dev/entry/src/main/ets/MainAbility/pages/web.ets index 2486769f509d09d63ba3377519488f4f379197e6..e92128f15c6f1e6e90dfbc3cfa0f5285f9997b42 100644 --- a/arkui/ace_ets_web_dev/entry/src/main/ets/MainAbility/pages/web.ets +++ b/arkui/ace_ets_web_dev/entry/src/main/ets/MainAbility/pages/web.ets @@ -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) => {