|
@@ -11,7 +11,7 @@
|
|
|
<el-col :span="18" class="title textOver">
|
|
|
{{ item.title }}
|
|
|
</el-col>
|
|
|
- <el-col :span="5" class="date"> [{{ item.release_time }}] </el-col>
|
|
|
+ <el-col :span="5" class="date"> [{{ getDate(item.release_time) }}] </el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -24,7 +24,7 @@
|
|
|
<el-col :span="18" class="title textOver">
|
|
|
{{ item.title }}
|
|
|
</el-col>
|
|
|
- <el-col :span="5" class="date"> [{{ item.release_time }}] </el-col>
|
|
|
+ <el-col :span="5" class="date"> [{{ getDate(item.release_time) }}] </el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -42,7 +42,7 @@
|
|
|
{{ item.title }}
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="date">
|
|
|
- {{ item.release_time }}
|
|
|
+ {{ getDate(item.release_time) }}
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -55,7 +55,7 @@
|
|
|
<el-col :span="18" class="title textOver">
|
|
|
{{ item.title }}
|
|
|
</el-col>
|
|
|
- <el-col :span="5" class="date"> [{{ item.release_time }}] </el-col>
|
|
|
+ <el-col :span="5" class="date"> [{{ getDate(item.release_time) }}] </el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -68,7 +68,7 @@
|
|
|
<el-col :span="18" class="title textOver">
|
|
|
{{ item.title }}
|
|
|
</el-col>
|
|
|
- <el-col :span="5" class="date"> [{{ item.release_time }}] </el-col>
|
|
|
+ <el-col :span="5" class="date"> [{{ getDate(item.release_time) }}] </el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -78,6 +78,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+const moment = require('moment');
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
export default {
|
|
|
name: 'list',
|
|
@@ -100,6 +101,12 @@ export default {
|
|
|
detailBtn(id, index) {
|
|
|
this.$emit('detail', { id: id, index: index });
|
|
|
},
|
|
|
+ getDate(date) {
|
|
|
+ if (date) {
|
|
|
+ let newDate = moment(date.createdAt).format('YYYY-MM-DD');
|
|
|
+ if (newDate) return newDate;
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|