master
paulGao 2022-01-27 14:58:42 +08:00
parent 4dea906e23
commit 557d7ef1d9
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ export default {
return val.toFixed(2).split(".");
},
getCountDownTime(val) {
let date = new Date(val.replace(/-/g, "/"));
let date = new Date(val);
let timeSimple = new Date(date).getTime() / 1000;
return timeSimple - new Date().getTime() / 1000;
},