From 2bfa2343625a893a1a6d48ba8b8f552548df4049 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 22 Jul 2023 11:40:41 +0200 Subject: [PATCH] use function for updateInput --- src/components/ftbot/TimeRangeSelect.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ftbot/TimeRangeSelect.vue b/src/components/ftbot/TimeRangeSelect.vue index a4839dfe..440e3e80 100644 --- a/src/components/ftbot/TimeRangeSelect.vue +++ b/src/components/ftbot/TimeRangeSelect.vue @@ -61,7 +61,7 @@ const timeRange = computed(() => { return ''; }); -const updateInput = () => { +function updateInput() { const tr = props.modelValue.split('-'); if (tr[0]) { dateFrom.value = timestampToDateString(dateFromString(tr[0], 'yyyyMMdd')); @@ -74,7 +74,7 @@ const updateInput = () => { dateTo.value = ''; } emit('update:modelValue', timeRange.value); -}; +} watch( () => timeRange.value,