Explorar o código

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

xyh %!s(int64=2) %!d(string=hai) anos
pai
achega
287ea8ea9d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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}
             >
               删除