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:
parent
086ba1603b
commit
c5b4d1a663
@ -10,7 +10,7 @@ function formatTimeStamp(timeStamp) {
|
|||||||
if (timeStamp < 10 ** 12) {
|
if (timeStamp < 10 ** 12) {
|
||||||
return timeStamp * 1000;
|
return timeStamp * 1000;
|
||||||
}
|
}
|
||||||
return timeStamp;
|
return +timeStamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDate(timeStamp) {
|
function getDate(timeStamp) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user