|
@@ -70,7 +70,7 @@ export function useHandle(data: RoleListData[], refetch: () => void) {
|
|
|
key: 'id',
|
|
|
width: MAXIMAL_TABLE_WIDTH,
|
|
|
fixed: 'right',
|
|
|
- render(_, {id}) {
|
|
|
+ render(_, {id, roleName}) {
|
|
|
return (
|
|
|
<>
|
|
|
<Button
|
|
@@ -100,7 +100,7 @@ export function useHandle(data: RoleListData[], refetch: () => void) {
|
|
|
<Button
|
|
|
type='text'
|
|
|
danger
|
|
|
- onClick={onDelete(String(id))}
|
|
|
+ onClick={onDelete(String(id), roleName)}
|
|
|
loading={deleteId === String(id)}
|
|
|
>
|
|
|
删除
|