瀏覽代碼

feat: 单位下密码非必填

lanjianrong 3 年之前
父節點
當前提交
fcccc96def
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 0 1
      src/components/AnimateContent/index.tsx
  2. 4 0
      src/pages/Institutions/Staff/components/StaffDetail.tsx

+ 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
+      })
     }
   }