mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
use function for updateInput
This commit is contained in:
parent
ee8831ed14
commit
2bfa234362
|
@ -61,7 +61,7 @@ const timeRange = computed(() => {
|
||||||
return '';
|
return '';
|
||||||
});
|
});
|
||||||
|
|
||||||
const updateInput = () => {
|
function updateInput() {
|
||||||
const tr = props.modelValue.split('-');
|
const tr = props.modelValue.split('-');
|
||||||
if (tr[0]) {
|
if (tr[0]) {
|
||||||
dateFrom.value = timestampToDateString(dateFromString(tr[0], 'yyyyMMdd'));
|
dateFrom.value = timestampToDateString(dateFromString(tr[0], 'yyyyMMdd'));
|
||||||
|
@ -74,7 +74,7 @@ const updateInput = () => {
|
||||||
dateTo.value = '';
|
dateTo.value = '';
|
||||||
}
|
}
|
||||||
emit('update:modelValue', timeRange.value);
|
emit('update:modelValue', timeRange.value);
|
||||||
};
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => timeRange.value,
|
() => timeRange.value,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user