fix: 修复禁用的删除任然可以点击的问题

pull/341/head
li_shifeng 2026-05-11 14:13:23 +08:00
parent c164904a14
commit 2ea7da06c5
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
auth: ['system:dept:delete'],
disabled: row.children && row.children.length > 0,
popConfirm: {
disabled: row.children && row.children.length > 0,
title: $t('ui.actionMessage.deleteConfirm', [row.name]),
confirm: handleDelete.bind(null, row),
},