diff --git a/src/views/dashboard/devices/DevicesRoot.vue b/src/views/dashboard/devices/DevicesRoot.vue index b75f5c2..d677f9b 100644 --- a/src/views/dashboard/devices/DevicesRoot.vue +++ b/src/views/dashboard/devices/DevicesRoot.vue @@ -131,7 +131,7 @@ export default { timerInterval = setInterval(() => { const left = this.$swal.getTimerLeft(); const minutes = Math.floor(left / 1000 / 60); - b.textContent = `${minutes}:${Math.floor(left / 1000 - minutes * 60)}`; + b.textContent = `${minutes}:${String(Math.floor(left / 1000 - minutes * 60)).padStart(2, '0')}`; }, 1000) }, willClose: () => {