Forráskód Böngészése

fix: 密码隐藏的调整

outaozhen 3 éve
szülő
commit
70e79878d6

+ 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 = {