From 17aefd5568e737bb39f5fdc6215387fbe112df22 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Mon, 2 Feb 2026 13:27:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=9F=E4=B8=80=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=87=BD=E6=95=B0=E5=8F=82=E6=95=B0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=BA=20SwitchProps['checked']?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复多个系统管理页面及全局组件中状态切换函数参数类型不一致的问题,将原先的 `boolean` 类型统一为 `SwitchProps['checked']` 类型,确保与 antdv-next 组件库的类型定义保持一致,提高类型安全性和代码一致性。 --- apps/web-antd/src/components/global/api-switch.vue | 10 ++++++---- apps/web-antd/src/views/system/client/index.vue | 7 ++++++- apps/web-antd/src/views/system/oss-config/index.vue | 7 ++++++- apps/web-antd/src/views/system/role/index.vue | 4 +++- apps/web-antd/src/views/system/tenant/index.vue | 7 +++++-- apps/web-antd/src/views/system/tenantPackage/index.vue | 7 ++++++- apps/web-antd/src/views/system/user/index.vue | 4 ++-- 7 files changed, 34 insertions(+), 12 deletions(-) diff --git a/apps/web-antd/src/components/global/api-switch.vue b/apps/web-antd/src/components/global/api-switch.vue index 20df8c34..65b8fed4 100644 --- a/apps/web-antd/src/components/global/api-switch.vue +++ b/apps/web-antd/src/components/global/api-switch.vue @@ -1,4 +1,6 @@