From d4470507afa97860ba2d77ee138f3e8dc3382559 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Mon, 6 Mar 2023 20:35:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=97=AD=E5=98=B4=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=BF=87=E9=95=BF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/common.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/utils/common.js b/utils/common.js index 5eb87ca..ab50b67 100644 --- a/utils/common.js +++ b/utils/common.js @@ -299,9 +299,9 @@ export function getDefaultUserSetting () { export function parseDuration (duration) { const timeMap = { - 秒: 1000, - 分: 60 * 1000, - 小时: 60 * 60 * 1000 + 秒: 1, + 分: 60, + 小时: 60 * 60 } // 去掉多余的空格并将单位转化为小写字母 @@ -331,9 +331,9 @@ export function parseDuration (duration) { export function formatDuration (duration) { const timeMap = { - 小时: 60 * 60 * 1000, - 分钟: 60 * 1000, - 秒钟: 1000 + 小时: 60 * 60, + 分钟: 60, + 秒钟: 1 } const units = Object.keys(timeMap)