|
@@ -67,7 +67,7 @@ export function useHandle(refetch: () => void) {
|
|
key: 'id',
|
|
key: 'id',
|
|
width: LARGE_TABLE_WIDTH,
|
|
width: LARGE_TABLE_WIDTH,
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
- render(_, {id}) {
|
|
|
|
|
|
+ render(_, {id, name}) {
|
|
return (
|
|
return (
|
|
<>
|
|
<>
|
|
<Button
|
|
<Button
|
|
@@ -90,7 +90,7 @@ export function useHandle(refetch: () => void) {
|
|
type='text'
|
|
type='text'
|
|
danger
|
|
danger
|
|
loading={pendingId === id}
|
|
loading={pendingId === id}
|
|
- onClick={onDelete(id)}
|
|
|
|
|
|
+ onClick={onDelete(id, name)}
|
|
>
|
|
>
|
|
删除
|
|
删除
|
|
</Button>
|
|
</Button>
|