From c50d41bf457b56ef2d4e33459e9706c1221e6f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E5=A4=A7=E5=8F=94?= <494979559@qq.com> Date: Tue, 4 Jun 2024 15:15:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/device/detail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/system/device/detail.vue b/src/views/system/device/detail.vue index 7f4cf0a..7c59a1e 100644 --- a/src/views/system/device/detail.vue +++ b/src/views/system/device/detail.vue @@ -121,7 +121,7 @@ export default { if (expireTime < now) { return 0; } - return Math.floor((expireTime - now) / 60000); + return ((expireTime - now) / 60000).toFixed(2); }, // 刷新设备信息 refreshIot() {