src/common/utils/util.js
@@ -133,6 +133,12 @@ parseInt(t[2], 10) || null )).getTime() / 1000; }, formatDate(date) { const year = date.getFullYear(); const month = (date.getMonth() + 1).toString().padStart(2, '0'); const day = date.getDate().toString().padStart(2, '0'); return `${year}-${month}-${day}`; }, /** * 倒计时 * @param {Object} seconds 秒