From f549596602faa06083ae0194bda5ee1cd10d30bc Mon Sep 17 00:00:00 2001 From: lukaijie Date: Wed, 17 Nov 2021 16:53:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85?= 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..dd7a53902 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, formatter) } export function copyText(text, msg = '内容已复制') {