mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 23:56:43 +08:00
[FIX]【商品商城】转发记录页格式化日期
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user