From c7e5c0e96e7df000e2c831877133863be4a92f26 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Mon, 28 Nov 2022 17:21:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A5=E6=9C=9F=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=8C=85=E5=90=AB=E5=BD=93=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/deCustomCm/DeDatePick.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/deCustomCm/DeDatePick.vue b/frontend/src/components/deCustomCm/DeDatePick.vue index e01bdcd32a..2e8b8914f6 100644 --- a/frontend/src/components/deCustomCm/DeDatePick.vue +++ b/frontend/src/components/deCustomCm/DeDatePick.vue @@ -26,7 +26,8 @@ export default { }, methods: { handleChange(val) { - this.$emit('input', val) + const [ pre, next ] = val + this.$emit('input', [pre, next ? new Date(+new Date(next) + (23 * 3600 + 59 * 61) * 1000) : '']) } } }