Browse Source

时间更新

guhongwei 5 years ago
parent
commit
486f53297e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/layout/index/cause.vue
  2. 1 1
      src/layout/index/danwei.vue

+ 1 - 1
src/layout/index/cause.vue

@@ -10,7 +10,7 @@
                 <el-link :underline="false" @click="$router.push({ path: `/info/detail?id=${tag.id}` })">{{ tag.title }} </el-link>
                 <el-link :underline="false" @click="$router.push({ path: `/info/detail?id=${tag.id}` })">{{ tag.title }} </el-link>
               </el-col>
               </el-col>
               <el-col :span="4" class="time">
               <el-col :span="4" class="time">
-                {{ tag.meta && tag.meta.createdAt ? new Date(tag.meta.createdAt).toLocaleDateString() : '' || '' }}
+                {{ tag.publish_time }}
               </el-col>
               </el-col>
             </el-col>
             </el-col>
           </el-tab-pane>
           </el-tab-pane>

+ 1 - 1
src/layout/index/danwei.vue

@@ -10,7 +10,7 @@
                 <el-link :underline="false" @click="$router.push({ path: `/info/detail?id=${tag.id}` })">{{ tag.title }}</el-link>
                 <el-link :underline="false" @click="$router.push({ path: `/info/detail?id=${tag.id}` })">{{ tag.title }}</el-link>
               </el-col>
               </el-col>
               <el-col :span="4" class="time">
               <el-col :span="4" class="time">
-                {{ tag.meta && tag.meta.createdAt ? new Date(tag.meta.createdAt).toLocaleDateString() : '' || '' }}
+                {{ tag.publish_time }}
               </el-col>
               </el-col>
             </el-col>
             </el-col>
           </el-tab-pane>
           </el-tab-pane>