Procházet zdrojové kódy

修改时间字段

asd123a20 před 1 rokem
rodič
revize
71bcfd549e

+ 1 - 1
src/views/templates/ztjy/details.vue

@@ -8,7 +8,7 @@
       <h4 class="title2" v-if="contentsItem && contentsItem.curtTitle" v-html="contentsItem.curtTitle"></h4>
       <div class="timeBox">
         <div class="times">
-          <span class="time">发表时间:{{ contentsItem && contentsItem.createAt | dates }}</span>
+          <span class="time">发表时间:{{ contentsItem && contentsItem.date | dates }}</span>
           <span class="time2"  v-if="contentsItem && contentsItem.source">来源:{{ contentsItem && contentsItem.source }}</span>
           <span class="time2"  v-if="contentsItem && contentsItem.author">作者:{{ contentsItem && contentsItem.author }}</span>
           <span class="time2">访问量: {{ contentsItem && contentsItem.visit }}</span>

+ 1 - 1
src/views/templates/ztjy/index.vue

@@ -10,7 +10,7 @@
       <ul class="listBody">
         <li class="listItem" v-for="i in list[item.code]" :key="i._id" @click="detailsClick(i)">
           <div class="listname">{{ i.title | titles }}</div>
-          <div class="listtime">{{ i.createAt | dates }}</div>
+          <div class="listtime">{{ i.date | dates }}</div>
         </li>
       </ul>
     </div>

+ 1 - 1
src/views/templates/ztjy/list.vue

@@ -6,7 +6,7 @@
       <ul class="listBody">
         <li class="listItem" v-for="i in contentList" :key="i._id" @click="detailsClick(i)">
           <div class="listname">{{ i.title | titles }}</div>
-          <div class="listtime">{{ i.createAt | dates }}</div>
+          <div class="listtime">{{ i.date | dates }}</div>
         </li>
       </ul>
       <el-pagination class="pagination" @current-change="handleCurrentChange" :current-page.sync="page" :page-size="size" layout="prev, pager, next, jumper" :total="listTotal"></el-pagination>