diff --git a/Web/src/views/CalendarView.vue b/Web/src/views/CalendarView.vue index 0951646..e63abe9 100644 --- a/Web/src/views/CalendarView.vue +++ b/Web/src/views/CalendarView.vue @@ -78,7 +78,7 @@ onMounted(async () => { await nextTick(); setTimeout(() => { // 计算页面高度,滚动3/4高度以显示更多日期 - const height = document.querySelector(".calendar-container").clientHeight * 0.55; + const height = document.querySelector(".calendar-container").clientHeight * 0.50; document.querySelector(".van-calendar__body").scrollBy({ top: -height, behavior: "smooth", @@ -315,7 +315,7 @@ onBeforeUnmount(() => { } .calendar-container :deep(.van-calendar) { - height: auto !important; + height: calc(auto + 20px) !important; flex: 1; overflow: auto; margin: 0;