|
@@ -46,7 +46,7 @@ export function useHandle(refetch: () => void) {
|
|
|
width:
|
|
|
isSuper && paramsType === '仓库' ? DOUBLE_BTN_WIDTH : SMALL_TABLE_WIDTH,
|
|
|
fixed: 'right',
|
|
|
- render(_, {id, warehouseType}) {
|
|
|
+ render(_, {id, warehouseType, name}) {
|
|
|
return (
|
|
|
<>
|
|
|
{paramsType === '仓库' && (
|
|
@@ -64,7 +64,7 @@ export function useHandle(refetch: () => void) {
|
|
|
type='text'
|
|
|
danger
|
|
|
loading={pendingId === id}
|
|
|
- onClick={onDelete({id, type: paramsType})}
|
|
|
+ onClick={onDelete({id, type: paramsType}, name)}
|
|
|
>
|
|
|
删除
|
|
|
</Button>
|