From f77e39861681ef48424ea9783abbfff9d0cf4a2f Mon Sep 17 00:00:00 2001 From: zhangxinyue Date: Thu, 17 Nov 2022 10:08:56 +0800 Subject: [PATCH] bug fix Signed-off-by: zhangxinyue --- .../src/main/ets/MainAbility/pages/web.ets | 22 +------------------ 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/arkui/ace_ets_web_dev_two/entry/src/main/ets/MainAbility/pages/web.ets b/arkui/ace_ets_web_dev_two/entry/src/main/ets/MainAbility/pages/web.ets index 3b720bf56..a567aa473 100644 --- a/arkui/ace_ets_web_dev_two/entry/src/main/ets/MainAbility/pages/web.ets +++ b/arkui/ace_ets_web_dev_two/entry/src/main/ets/MainAbility/pages/web.ets @@ -24,7 +24,6 @@ let loadedUrl; @Component struct Index { controller:WebController = new WebController() - controllerTwo: web_webview.WebviewController = new web_webview.WebviewController(); responseweb: WebResourceResponse = new WebResourceResponse() @State str:string="emitStoreWebArchive" @State text:string="" @@ -180,8 +179,7 @@ struct Index { this.controller.refresh() var origin = this.controller.getPageHeight() var zoomInCalled = false - setTimeout(()=>{ - this.controllerTwo.zoomIn() + setTimeout(()=>{ if (this.controller.getPageHeight() > origin) { zoomInCalled = true } @@ -237,24 +235,6 @@ struct Index { },3000) return false }) - Web({src:$rawfile('index.html'),controller:this.controllerTwo}) - .databaseAccess(true) - .zoomAccess(this.zoomAccessValue) - .textZoomRatio(this.textRatio) - .onConsole((event) => { - let level = event.message.getMessageLevel() - let msg = event.message.getMessage() - let lineNumber = event.message.getLineNumber().toString() - let sourceId = event.message.getSourceId() - console.log("lineNumber:" + lineNumber) - setTimeout(()=>{ - Utils.emitEvent(lineNumber,420) - },3000) - setTimeout(()=>{ - Utils.emitEvent(sourceId,422) - },3000) - return false - }) } } } -- GitLab