Browse Source

fix: bugs

ArvinQi 6 years ago
parent
commit
7419b3d67f
1 changed files with 11 additions and 1 deletions
  1. 11 1
      components/sign/profile.vue

+ 11 - 1
components/sign/profile.vue

@@ -10,7 +10,8 @@
         <el-button type="primary" @click="handleEdit">编辑</el-button>
       </div>
     </header>
-    <div v-if="editing" class="edit">
+    <div v-if="!content" class="empty">点击右上角“编辑”按钮添加个人介绍</div>
+    <div v-else-if="editing" class="edit">
       <editor :hideImage="true" :content="content" @change="handleChange"></editor>
     </div>
     <div v-else class="show" v-html="content"></div>
@@ -99,5 +100,14 @@ export default {
       word-break: break-all;
     }
   }
+  .empty {
+    margin: 112px auto 104px;
+    font-size: 27px;
+    font-family: PingFangSC-Regular;
+    font-weight: 400;
+    text-align: center;
+    color: rgba(205, 205, 205, 1);
+    line-height: 38px;
+  }
 }
 </style>