zs 10 months ago
parent
commit
10cc331075
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/news/detail.vue

+ 2 - 1
src/views/news/detail.vue

@@ -14,7 +14,7 @@
             </el-col>
             <el-col :span="8" class="two_1">
               <span>发布时间:</span>
-              {{ info.time || '暂无' }}
+              {{ moment(info.time).format('YYYY-MM-DD') }}
             </el-col>
           </el-col>
           <el-col :span="24" class="thr">
@@ -27,6 +27,7 @@
 </template>
 
 <script setup>
+import moment from 'moment'
 // 接口
 import { NewsStore } from '@/store/api/platform/news'
 const store = NewsStore()