From 39c8ec87a5e861851140b3dc3c205453411cfae7 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Thu, 7 Dec 2023 19:54:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20$data=E4=BD=BF=E7=94=A8=E4=B8=8B?= =?UTF-8?q?=E6=A0=87=E8=AE=BF=E9=97=AE=E5=85=B6=E4=B8=AD=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/template/calendar/calendar.uvue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/template/calendar/calendar.uvue b/pages/template/calendar/calendar.uvue index a2627331..1de734f0 100644 --- a/pages/template/calendar/calendar.uvue +++ b/pages/template/calendar/calendar.uvue @@ -59,8 +59,9 @@ export default { }, created () { }, onReady () { - this.weeks = this.$data.$calendar.getWeeks() - this.timeData = this.$data.$calendar.getDateInfo() + const calendar = this.$data['$calendar'] as Calendar + this.weeks = calendar.getWeeks() + this.timeData = calendar.getDateInfo() // 绘制日历头部 this.drawHeader() this.drawWeek(this.weeks, '') -- GitLab