fix(web-antdv-next): sync dept delete confirmation state

pull/355/head
XuZhiqiang 2026-06-04 22:57:28 +08:00
parent 70aed10752
commit cf0f7cedca
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),
},