From 214bcead299b6e8ff417f69c98acb5d20576e9f9 Mon Sep 17 00:00:00 2001 From: maqian Date: Wed, 17 Nov 2021 16:32:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/index.js b/src/utils/index.js index cd9c35ead..efdcea0e8 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -173,7 +173,7 @@ export function formatTime(time, formatter = 'YYYY-MM-DD') { export function formatDateTime(time, formatter = 'YYYY-MM-DD HH:mm:ss') { const newTime = time.toString().length < 13 ? time * 1000 : time - return format(newTime, formatter) + return dayjs(newTime).format(formatter) } export function copyText(text, msg = '内容已复制') {