diff --git a/src/components/Calendar/index.vue b/src/components/Calendar/index.vue index a411e63a..a52613fd 100644 --- a/src/components/Calendar/index.vue +++ b/src/components/Calendar/index.vue @@ -504,9 +504,7 @@ const isSelectedDay = (day) => { } } } else { - const tmpDate = new Date(); - tmpDate.setFullYear(cursor.value.getFullYear()); - tmpDate.setMonth(cursor.value.getMonth()); + const tmpDate = new Date(cursor.value); tmpDate.setDate(day); if (Array.isArray(modelValue.value)) {