|
@@ -53,14 +53,14 @@ export function useColumns(refetch: () => void) {
|
|
|
key: 'id',
|
|
|
fixed: 'right',
|
|
|
width: SMALL_TABLE_WIDTH,
|
|
|
- render(_, {id}) {
|
|
|
+ render(_, {id, noticeCode}) {
|
|
|
return (
|
|
|
<>
|
|
|
<Button
|
|
|
type='text'
|
|
|
danger
|
|
|
loading={pendingId === id}
|
|
|
- onClick={onDelete(id)}
|
|
|
+ onClick={onDelete(id, noticeCode)}
|
|
|
>
|
|
|
删除
|
|
|
</Button>
|