Explorar o código

fix: 项目编辑默认值

outaozhen %!s(int64=3) %!d(string=hai) anos
pai
achega
6433806314
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      src/pages/Project/Management/index.tsx

+ 4 - 3
src/pages/Project/Management/index.tsx

@@ -123,9 +123,10 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
                 ...state,
                 visible: true,
                 currentModalType: ModalType.UPDATE,
-                defaultFormData: {
-                  dataID: record.ID
-                }
+                defaultFormData: record
+                // defaultFormData: {
+                //   dataID: record.ID
+                // }
               })
             }}>
             编辑