guhongwei 5 년 전
부모
커밋
b0cde10296
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/layout/detail/content.vue

+ 7 - 0
src/layout/detail/content.vue

@@ -18,6 +18,10 @@
               发布时间:{{contentList.publish_time}}
             </el-col>
           </el-col>
+          <el-col :span="24" class="image">
+            <el-image :src="contentList.pic" v-if="contentList.pic"></el-image>
+            <el-col :span="24" v-else></el-col>
+          </el-col>
           <el-col :span="24" class="content" v-html="contentList.content">
           </el-col>
         </el-col>
@@ -67,6 +71,9 @@ export default {
   padding: 0 0 15px 0;
   font-size: 20px;
 }
+.info .image {
+  text-align: center;
+}
 .info .content {
   font-size: 21px;
   color: #333;