From b5b42b07fca241f5e0aa02e82ff6f20d4a169e95 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 5 Mar 2024 15:28:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=A7=BB=E5=8A=A8=E7=AB=AF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=97=B6=E9=97=B4=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E5=99=A8=E5=88=9D=E5=A7=8B=E5=8C=96=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=BF=87=E6=BB=A4Tab=E5=86=85=E9=83=A8=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/utils/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/frontend/src/utils/index.js b/core/frontend/src/utils/index.js index b9fa0d15a2..d6f9312fd4 100644 --- a/core/frontend/src/utils/index.js +++ b/core/frontend/src/utils/index.js @@ -10,6 +10,9 @@ export function timeSection(date, type, labelFormat = 'yyyy-MM-dd') { if (!date) { return null } + if (typeof date === 'string') { + date = parseInt(date); + } if (!(date instanceof Date)) { date = new Date(date) }