1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

fix(Coupon): timestamp can be string type

This commit is contained in:
chenjiahan 2021-05-10 16:02:37 +08:00
parent 086ba1603b
commit c5b4d1a663

@ -10,7 +10,7 @@ function formatTimeStamp(timeStamp) {
if (timeStamp < 10 ** 12) {
return timeStamp * 1000;
}
return timeStamp;
return +timeStamp;
}
function getDate(timeStamp) {