🐛(component): 修复datePicker 改变modelValue后视图不更新问题

This commit is contained in:
0o张不歪o0 2022-07-11 11:21:26 +08:00
parent a2967fb2cb
commit 0c0ea1cc2c

View File

@ -353,6 +353,7 @@ onMounted(() => {
// //
const dateValue = computed<string>(() => { const dateValue = computed<string>(() => {
currentDay.value = new Date(props.modelValue).getTime();
if (currentDay.value === -1) { if (currentDay.value === -1) {
$emits("update:modelValue", ""); $emits("update:modelValue", "");
return ""; return "";