From 874e07eab2ffc3143e8795f1894a0902831184d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Mon, 9 Mar 2026 18:56:46 +0800 Subject: [PATCH 1/2] =?UTF-8?q?JLBA202505130001=5F=E5=85=B3=E4=BA=8E?= =?UTF-8?q?=E5=90=89=E6=9E=97=E9=93=B6=E8=A1=8C=E6=96=B0=E5=BB=BAAI?= =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=9F=B9=E8=AE=AD=E7=B3=BB=E7=BB=9F=E7=9A=84?= =?UTF-8?q?=E9=9C=80=E6=B1=82=5Ffix=EF=BC=9A=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/components/calendar.vue | 6 ++++-- src/pages/index/components/todo.vue | 7 ++++++- src/pages/index/index.vue | 4 +++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/pages/index/components/calendar.vue b/src/pages/index/components/calendar.vue index 5bbe4fc1..5045575d 100644 --- a/src/pages/index/components/calendar.vue +++ b/src/pages/index/components/calendar.vue @@ -106,11 +106,13 @@ } return _arr }) - onMounted(() => { + const initDate = () => { nowDate.value = new Date() activeDate.value = formatDate(nowDate.value, 'yyyy-MM-dd') todayWeek.value = nowDate.value.getDay() - }) + } + defineExpose({ initDate }) + onMounted(() => {}) + .more-btn { + color: rgb(144, 147, 153); + text-align: center; + font-size: 23rpx; + } + } + + .empty-box { + text-align: center; + color: #999; + font-size: 24rpx; + line-height: 120rpx; + } + \ No newline at end of file