Avoid reloading tasks when already viewing today
ci-cd / verify (push) Successful in 5s
ci-cd / deploy (push) Skipped

This commit is contained in:
2026-10-05 12:01:37 +08:00
parent d6cb582ffe
commit 607d709100
+3 -1
View File
@@ -93,7 +93,9 @@ Page({
}, },
showToday() { showToday() {
if (this.data.completingAll || this.data.taskBusyIds.length) return; if (this.data.completingAll || this.data.taskBusyIds.length) return;
this.setData({ date: localDate() }); const today = localDate();
if (this.data.date === today) return;
this.setData({ date: today });
this.load(); this.load();
}, },
field(e) { field(e) {