use function for updateInput

This commit is contained in:
Matthias 2023-07-22 11:40:41 +02:00
parent ee8831ed14
commit 2bfa234362

View File

@ -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,