Explorar el Código

fix: 项目编辑默认值

outaozhen hace 3 años
padre
commit
6433806314
Se han modificado 1 ficheros con 4 adiciones y 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,
                 ...state,
                 visible: true,
                 visible: true,
                 currentModalType: ModalType.UPDATE,
                 currentModalType: ModalType.UPDATE,
-                defaultFormData: {
-                  dataID: record.ID
-                }
+                defaultFormData: record
+                // defaultFormData: {
+                //   dataID: record.ID
+                // }
               })
               })
             }}>
             }}>
             编辑
             编辑