[FIX]【商品商城】转发记录页格式化日期

This commit is contained in:
yuweiqi
2020-06-18 16:04:27 +08:00
parent 79a6a8cd1a
commit 8430a9ae02

View File

@@ -41,7 +41,6 @@
<script>
import { Sticky, Row, Col, List } from 'vant'
import { getShareList } from '@/api/ebiz/product-store/product-store'
import formatDate from '@/assets/js/utils/date-utils'
export default {
name: 'ForwardRecord',
@@ -121,7 +120,10 @@ export default {
},
filters: {
format: function(shareTime) {
return formatDate.formatDate(new Date(shareTime), 'yyyy-MM-dd')
if (shareTime) {
shareTime = shareTime.substr(0, 10)
}
return shareTime
}
}
}