mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 01:46:45 +08:00
[FIX]【商品商城】转发记录页格式化日期
This commit is contained in:
@@ -41,7 +41,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Sticky, Row, Col, List } from 'vant'
|
import { Sticky, Row, Col, List } from 'vant'
|
||||||
import { getShareList } from '@/api/ebiz/product-store/product-store'
|
import { getShareList } from '@/api/ebiz/product-store/product-store'
|
||||||
import formatDate from '@/assets/js/utils/date-utils'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ForwardRecord',
|
name: 'ForwardRecord',
|
||||||
@@ -121,7 +120,10 @@ export default {
|
|||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
format: function(shareTime) {
|
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