From ffcbd783494047c48ead38184629316167a40b90 Mon Sep 17 00:00:00 2001 From: huangxiaoyao <976125628@qq.com> Date: Mon, 23 Sep 2024 10:16:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20webview=5Fflutter=E7=BD=91=E9=A1=B5?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=8A=A0=E8=BD=BDsrc=E4=B8=BAfile=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E7=9A=84=E6=9C=AC=E5=9C=B0=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huangxiaoyao <976125628@qq.com> --- .../io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets | 2 +- .../io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/webview_flutter-v4.4.4/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets b/packages/webview_flutter-v4.4.4/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets index 6d43568c1..dc6bde59a 100644 --- a/packages/webview_flutter-v4.4.4/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets +++ b/packages/webview_flutter-v4.4.4/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets @@ -512,7 +512,7 @@ class WebSettingsImpl implements WebSettings { zoomAccess : boolean = false; overviewModeAccess : boolean = false; wideViewModeAccess: boolean = false; - fileAccess : boolean = false; + fileAccess : boolean = true; textZoomRatio : number = 0; textZoomRatioCallback?: (ratio: number) => void; diff --git a/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets b/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets index df7973393..afd1d2720 100644 --- a/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets +++ b/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets @@ -548,7 +548,7 @@ class WebSettingsImpl implements WebSettings { zoomAccess : boolean = false; overviewModeAccess : boolean = false; wideViewModeAccess: boolean = false; - fileAccess : boolean = false; + fileAccess : boolean = true; textZoomRatio : number = 0; textZoomRatioCallback?: (ratio: number) => void; -- Gitee