浏览代码

添加详情副标题

asd123a20 2 年之前
父节点
当前提交
a873653867
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/details.vue

+ 2 - 1
src/views/details.vue

@@ -3,7 +3,8 @@
     <breadcrumb ref="breadcrumb"></breadcrumb>
     <img class="thumbnail" v-if="isshow" :src="contentsItem.thumbnail">
     <h1 class="title">{{ contentsItem.title }}</h1>
-    <span class="describe">{{ contentsItem.describe }}</span>
+    <h2 class="title" v-if="contentsItem && contentsItem.curtTitle">{{ contentsItem.curtTitle }}</h2>
+    <!-- <span class="describe">{{ contentsItem.describe }}</span> -->
     <span class="date">发表时间: {{ contentsItem.updateAt | dates }}<span class="visit">访问量: {{ contentsItem.visit }}</span></span>
     <div class="content" v-html="contentsItem.content"></div>
     <a v-if="contentsItem && contentsItem.annex" :href="contentsItem.annex" :download="contentsItem.annex" target="view_window">下载附件</a>