Browse Source

update: 容器管理删除增加title

xyh 2 years ago
parent
commit
44c6f66338
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/app/src/pages/container/table/hooks.tsx

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

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