From eee11b465b8714965b2f9e69f77d6b1f28c8abd9 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 7 May 2024 15:48:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=BB=AA=E8=A1=A8=E6=9D=BF=E8=AF=A6=E6=83=85=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/components/filter-text/index.ts | 2 +- core/core-frontend/src/views/common/DvDetailInfo.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/components/filter-text/index.ts b/core/core-frontend/src/components/filter-text/index.ts index bcc75da1f9..b0a5dded6d 100644 --- a/core/core-frontend/src/components/filter-text/index.ts +++ b/core/core-frontend/src/components/filter-text/index.ts @@ -29,7 +29,7 @@ const timestampFormatDate = value => { if (!value) { return '-' } - return new Date(value)['format']() + return new Date(value).toLocaleString() } const valueText = (field, val, options) => { for (let index = 0; index < options.length; index++) { diff --git a/core/core-frontend/src/views/common/DvDetailInfo.vue b/core/core-frontend/src/views/common/DvDetailInfo.vue index 95f9478cab..e001bcc3b8 100644 --- a/core/core-frontend/src/views/common/DvDetailInfo.vue +++ b/core/core-frontend/src/views/common/DvDetailInfo.vue @@ -27,7 +27,7 @@ const timestampFormatDate = value => { if (!value) { return '-' } - return new Date(value)['format']() + return new Date(value).toLocaleString() }