소스 검색

fix: 密码隐藏的调整

outaozhen 3 년 전
부모
커밋
70e79878d6
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      src/pages/Institutions/Staff/components/StaffDetail.tsx

+ 5 - 3
src/pages/Institutions/Staff/components/StaffDetail.tsx

@@ -166,9 +166,11 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
     form.setSchemaByPath('organizationalStructureID', {
       disabled: hiddenOrganization
     })
-    form.setSchemaByPath('password', {
-      hidden: true
-    })
+    if (type === ModalType.UPDATE || type === ModalType.PREVIEW) {
+      form.setSchemaByPath('password', {
+        hidden: true
+      })
+    }
   }
 
   const watch = {