รีเซ็ต date

This commit is contained in:
setthawutttty 2024-02-14 11:51:00 +07:00
parent 9814c9f01a
commit 92aaccc791
3 changed files with 43 additions and 15 deletions

View file

@ -1755,7 +1755,11 @@ watch(
(value: string) => {
if (value.length === 10) {
const dateVal = convertDate(value);
finishDate.value = dateVal.value;
if (dateVal.isValid) {
finishDate.value = dateVal.value;
} else {
finishDateInput.value = "";
}
}
}