修复了进入日历没有日程卡片的bug。

Signed-off-by: Yang Yongquan <i@yangyq.net>
This commit is contained in:
2026-09-16 12:34:39 +08:00
parent cc7523a8ec
commit 76d82886e4
4 changed files with 25 additions and 13 deletions
@@ -422,8 +422,9 @@ struct Widget4x4Card {
postCardAction(this, {
action: 'router',
abilityName: 'EntryAbility',
// 携带卡片当前显示日(用户可能已翻到其他日期),进入日历时定位到这一天
params: { openDate: this.selectedDate }
// 携带卡片当前显示日(用户可能已翻到其他日期),进入日历时定位到这一天
// 必须转成字符串:param 的数值按 int32 传递,13 位毫秒时间戳会溢出成 2147483647(曾导致定位到 1970
params: { openDate: `${this.selectedDate}` }
});
}
@@ -419,8 +419,9 @@ struct Widget6x4Card {
postCardAction(this, {
action: 'router',
abilityName: 'EntryAbility',
// 携带卡片当前显示日(用户可能已翻到其他日期),进入日历时定位到这一天
params: { openDate: this.selectedDate }
// 携带卡片当前显示日(用户可能已翻到其他日期),进入日历时定位到这一天
// 必须转成字符串:param 的数值按 int32 传递,13 位毫秒时间戳会溢出成 2147483647(曾导致定位到 1970
params: { openDate: `${this.selectedDate}` }
});
}