fix 选中一月出错

This commit is contained in:
2023-11-20 11:28:28 +08:00
parent d858824376
commit c537d81b59
4 changed files with 4 additions and 4 deletions

View File

@@ -878,7 +878,7 @@ const _sfc_main$3 = defineComponent({
Month.value = props.modelValue;
});
const footOnOk = () => {
emits("update:modelValue", Month.value ? Month.value : -1);
emits("update:modelValue", Month.value || Month.value === 0 ? Month.value : -1);
if (datePicker.range) {
emits("ok");
return;