فهرست منبع

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