Pārlūkot izejas kodu

Merge branch 'share-member' into iteration_1.3.4

lex 2 gadi atpakaļ
vecāks
revīzija
1edfeb372e
1 mainītis faili ar 10 papildinājumiem un 8 dzēšanām
  1. 10 8
      src/student/teacher-dependent/components/single.tsx

+ 10 - 8
src/student/teacher-dependent/components/single.tsx

@@ -86,14 +86,16 @@ export default defineComponent({
     const userInfo = this.userInfo
     return (
       <div class={styles.single}>
-        <SectionDetail
-          icon="personal"
-          title="个人介绍"
-          size={24}
-          border={false}
-        >
-          <p class={styles.introduction}>{userInfo.introduction}</p>
-        </SectionDetail>
+        {userInfo.introduction && (
+          <SectionDetail
+            icon="personal"
+            title="个人介绍"
+            size={24}
+            border={false}
+          >
+            <p class={styles.introduction}>{userInfo.introduction}</p>
+          </SectionDetail>
+        )}
 
         {userInfo.styleVideo && userInfo.styleVideo.length > 0 && (
           <SectionDetail