src/common/utils/util.js
@@ -144,9 +144,9 @@ const hours = date.getHours().toString().padStart(2, '0'); const minutes = date.getMinutes().toString().padStart(2, '0'); if (type) { return `${year}/${month}/${day} ${hours}:${minutes}`; return `${year}-${month}-${day} ${hours}:${minutes}`; } return `${year}/${month}/${day}`; return `${year}-${month}-${day}`; }, /** * 倒计时 @@ -767,7 +767,9 @@ }, reject) // #endif }) }, roundToTwo(num){ return Math.round((num + Number.EPSILON) * 100) / 100; } }