Browse Source

feat: 单位下密码非必填

lanjianrong 3 năm trước cách đây
mục cha
commit
fcccc96def

+ 0 - 1
src/components/AnimateContent/index.tsx

@@ -17,7 +17,6 @@ const AnimateContent: FC<PropsWithChildren<AnimateContentProps>> = ({
 }) => {
   const headerHeight = document.querySelector('.ant-page-header-heading')?.clientHeight + 8 || 0
   const breadcrumbHeight = disableBreadcrumb ? 0 : 50
-  console.log(headerHeight + breadcrumbHeight)
 
   return (
     <div className={styles.pageContainer}>

+ 4 - 0
src/pages/Institutions/Staff/components/StaffDetail.tsx

@@ -173,6 +173,10 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
       form.setSchemaByPath('password', {
         hidden: true
       })
+    } else {
+      form.setSchemaByPath('password', {
+        required: false
+      })
     }
   }