From 116fe39b8dff412604c75c4119a04f2a3c3ee7c2 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Fri, 4 Apr 2025 01:46:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=BC=E5=AE=B9=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=ACvxe=E7=9A=84=E5=8B=BE=E9=80=89api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/components/tree/src/menu-select-table.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web-antd/src/components/tree/src/menu-select-table.vue b/apps/web-antd/src/components/tree/src/menu-select-table.vue index d1dbc52f..9931f354 100644 --- a/apps/web-antd/src/components/tree/src/menu-select-table.vue +++ b/apps/web-antd/src/components/tree/src/menu-select-table.vue @@ -317,7 +317,7 @@ function getKeys(records: MenuPermissionOption[], addCurrent: boolean) { function getCheckedKeys() { // 节点关联 if (association.value) { - const records = tableApi?.grid?.getCheckboxRecords?.() ?? []; + const records = tableApi?.grid?.getCheckboxRecords?.(true) ?? []; // 子节点 const nodeKeys = getKeys(records, true); // 所有父节点 @@ -329,7 +329,7 @@ function getCheckedKeys() { // 节点独立 // 勾选的行 - const records = tableApi?.grid?.getCheckboxRecords?.() ?? []; + const records = tableApi?.grid?.getCheckboxRecords?.(true) ?? []; // 全部数据 用于获取permissions const allRecords = tableApi?.grid?.getData?.() ?? []; // 表格已经选中的行ids