lanjianrong 3 years ago
parent
commit
08d349d88f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pages/Institutions/Staff/components/StaffDetail.tsx

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

@@ -169,7 +169,7 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
       disabled: hiddenOrganization,
       hidden: !institutionID
     })
-    if (type === ModalType.UPDATE || type === ModalType.PREVIEW) {
+    if (hiddenOrganization && (type === ModalType.UPDATE || type === ModalType.PREVIEW)) {
       form.setSchemaByPath('password', {
         hidden: true
       })