chore: adjust the deletion modal config

This commit is contained in:
jialin
2024-12-24 10:34:08 +08:00
parent 762ab30c71
commit 02391e66dc
9 changed files with 65 additions and 14 deletions
+2
View File
@@ -160,6 +160,7 @@ const Users: React.FC = () => {
const handleDelete = (row: ListItem) => {
modalRef.current.show({
content: 'users.table.user',
operation: 'common.delete.single.confirm',
name: row.name,
async onOk() {
console.log('OK');
@@ -172,6 +173,7 @@ const Users: React.FC = () => {
const handleDeleteBatch = () => {
modalRef.current.show({
content: 'users.table.user',
operation: 'common.delete.confirm',
selection: true,
async onOk() {
await handleBatchRequest(rowSelection.selectedRowKeys, deleteUser);