From 8bb0f5e3a514bbdf2eac310fcd192c8c6a6da743 Mon Sep 17 00:00:00 2001 From: dingxs Date: Tue, 23 May 2023 11:50:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D[=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=99=A8=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=AE=9E=E9=99=85=E6=89=80=E9=80=89=E6=97=B6=E9=97=B4=E8=8C=83?= =?UTF-8?q?=E5=9B=B4]Bug=E5=B9=B6=E4=B8=94=E8=AE=BE=E7=BD=AE=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Informations/Inputs/InputsDate/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/packages/components/Informations/Inputs/InputsDate/index.vue b/src/packages/components/Informations/Inputs/InputsDate/index.vue index 2fa35a75..3800590f 100644 --- a/src/packages/components/Informations/Inputs/InputsDate/index.vue +++ b/src/packages/components/Informations/Inputs/InputsDate/index.vue @@ -39,9 +39,9 @@ const onChange = (v: number | number[]) => { props.chartConfig, useChartEditStore, { - [ComponentInteractParamsEnum.DATE_START]: v[0] | dayjs().valueOf(), - [ComponentInteractParamsEnum.DATE_END]: v[1] | dayjs().valueOf(), - [ComponentInteractParamsEnum.DATE_RANGE]: `${v[0]}-${v[1]}` + [ComponentInteractParamsEnum.DATE_START]: v[0] || dayjs().valueOf(), + [ComponentInteractParamsEnum.DATE_END]: v[1] || dayjs().valueOf(), + [ComponentInteractParamsEnum.DATE_RANGE]: `${v[0] || dayjs().valueOf()}-${v[1] || dayjs().valueOf()}` }, InteractEventOn.CHANGE ) @@ -50,7 +50,7 @@ const onChange = (v: number | number[]) => { useChartInteract( props.chartConfig, useChartEditStore, - { [ComponentInteractParamsEnum.DATE]: v }, + { [ComponentInteractParamsEnum.DATE]: v || dayjs().valueOf() }, InteractEventOn.CHANGE ) }