outaozhen 3 년 전
부모
커밋
0466a8d118
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/pages/Institutions/Staff/components/StaffDetail.tsx
  2. 1 1
      src/pages/Project/Management/components/Detail.tsx

+ 1 - 1
src/pages/Institutions/Staff/components/StaffDetail.tsx

@@ -252,7 +252,7 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
             schema={schema}
             onFinish={onFinish}
             onMount={onMount}
-            readOnly={type === ModalType.PREVIEW ? true : null}
+            readOnly={type === ModalType.PREVIEW ? true : false}
             widgets={{ site: SiteInput }}
             watch={watch}
           />

+ 1 - 1
src/pages/Project/Management/components/Detail.tsx

@@ -125,7 +125,7 @@ const DetailModal: React.FC<ProjectModalProps> = ({
             form={form}
             schema={schema}
             onMount={onMount}
-            readOnly={type === ModalType.PREVIEW ? true : null}
+            readOnly={type === ModalType.PREVIEW ? true : false}
           />
         )}
       </TabPane>