Browse Source

update: 字典表删除增加title

xyh 2 năm trước cách đây
mục cha
commit
dfa98e8ee6
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      packages/app/src/pages/dictionary/table/hooks.tsx

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

@@ -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>