Browse Source

update: 物料绑定管理删除增加title

xyh 2 years ago
parent
commit
287ea8ea9d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/app/src/pages/material-bind/table/hooks.tsx

+ 2 - 2
packages/app/src/pages/material-bind/table/hooks.tsx

@@ -63,7 +63,7 @@ export function useHandle(refetch: () => void) {
       key: 'id',
       width: DOUBLE_BTN_WIDTH,
       fixed: 'right',
-      render(_, {id}) {
+      render(_, {id, wllbCode}) {
         return (
           <>
             <Button
@@ -77,7 +77,7 @@ export function useHandle(refetch: () => void) {
             <Button
               type='text'
               danger
-              onClick={onDelete(id)}
+              onClick={onDelete(id, wllbCode)}
               loading={pendingId === id}
             >
               删除