From 10866020b6ca36de267ffdd3b99bad9a9b0eba53 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 31 Jul 2024 09:27:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BF=87=E6=BB=A4=E8=A7=84=E5=88=99=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=BB=98=E8=AE=A4=E5=80=BC=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/custom-component/v-query/Time.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/custom-component/v-query/Time.vue b/core/core-frontend/src/custom-component/v-query/Time.vue index 9f83365111..7feb7b06c9 100644 --- a/core/core-frontend/src/custom-component/v-query/Time.vue +++ b/core/core-frontend/src/custom-component/v-query/Time.vue @@ -135,7 +135,9 @@ const handleValueChange = () => { }) return } - config.value.defaultValue = value.map(ele => new Date(ele).toLocaleString()) + config.value.defaultValue = Array.isArray(value) + ? value.map(ele => new Date(ele).toLocaleString()) + : new Date(value).toLocaleString() } const init = () => {