From bcf7914e7b55e72cc453b559086255a56fe53a64 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期一, 20 一月 2025 08:59:44 +0800 Subject: [PATCH] feat:电子提煤单下载显示 --- utils/util.js | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/utils/util.js b/utils/util.js index f9b67d7..7285440 100644 --- a/utils/util.js +++ b/utils/util.js @@ -1,4 +1,4 @@ -export function todayDate(arg){ +export function todayDate(arg) { let date = new Date() let year = date.getFullYear() let month = date.getMonth() + 1; @@ -6,11 +6,10 @@ let hour = date.getHours() let minutes = date.getMinutes() let seconds = date.getSeconds() - console.log(arg,'鏃堕棿'); - if(arg == 'hms'){ + if (arg == 'hms') { hour = hour < 10 ? '0' + hour : hour minutes = minutes < 10 ? '0' + minutes : minutes seconds = seconds < 10 ? '0' + seconds : seconds - return hour+':'+minutes+':' + seconds + return hour + ':' + minutes + ':' + seconds } -} \ No newline at end of file +} -- Gitblit v1.9.1