From 4908affb85c17241e9aa20e4ed9df8a172a4eee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=8B=A4=E6=B0=91?= Date: Thu, 31 Oct 2024 17:56:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(ywq):=20=E6=B7=BB=E5=8A=A0=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=A0=B7=E5=BC=8F=E5=88=87=E6=8D=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 SignViewModeConfigView 组件用于配置列表样式 - 在 YWQMineView 中添加列表样式切换入口- 使用 ViewType 枚举定义列表样式类型 - 在 RouterBuilder 中注册 SignViewModeConfigView路由 - 更新 BJCALocalStorageKeys,添加保存列表样式类型的键 --- src/main/ets/pages/XWebview.ets | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/ets/pages/XWebview.ets b/src/main/ets/pages/XWebview.ets index e486c13..e7e4d05 100644 --- a/src/main/ets/pages/XWebview.ets +++ b/src/main/ets/pages/XWebview.ets @@ -116,6 +116,9 @@ export struct XWebview { .width('100%') Web({ src: this.url ?? 'www.example.com', controller: this.controller }) + .javaScriptAccess(true) + .domStorageAccess(true) + .geolocationAccess(true) .width('100%') .height('100%') .visibility(this.errorInfo == null ? Visibility.Visible : Visibility.None) @@ -184,6 +187,7 @@ export struct XWebview { } else { this.errorInfo = '错误码:-1\n未知错误' } + ToolsHelper.log(this.errorInfo) }) .onHttpErrorReceive((event) => { // 加载失败 if (this.progress > 65) { @@ -194,6 +198,7 @@ export struct XWebview { } else { this.errorInfo = '错误码:-1\n未知错误' } + ToolsHelper.log(this.errorInfo) }) .onProgressChange((event) => { // 加载进度 if (event) {