浏览代码

Merge branch 'share-member' into iteration_1.3.4

lex 2 年之前
父节点
当前提交
1edfeb372e
共有 1 个文件被更改,包括 10 次插入8 次删除
  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