!341 fix: 修复禁用的删除按钮仍然可以点击的问题

Merge pull request !341 from li_shifeng/fix-dept-delete
master
xingyu 2026-05-14 08:29:04 +00:00 committed by Gitee
commit 59183029b6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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),
},