From c4b5c2a086b1d0a64fda83890d39aaf8dfb47637 Mon Sep 17 00:00:00 2001 From: yupeng Date: Fri, 7 Jul 2023 17:21:10 +0800 Subject: [PATCH] xiugai api Signed-off-by: yupeng --- .../entry/src/main/ets/MainAbility/pages/web.ets | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 2486769f5..e92128f15 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) => { -- GitLab