fix: 服务器数据纪元保护(空快照不清空本地,自动全量重推自救) / 详情页导出指定日 / 全局计时时钟面板
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
addGoal, updateGoal, deleteGoal, listGoals, getGoalProgress, type Goal
|
||||
} from '../db/repo'
|
||||
import { addDays, parseDateStr, todayStr, toDateStr, formatDateCN } from '../lib/date'
|
||||
import { attendanceChanged } from '../lib/bus'
|
||||
import { attendanceChanged, notifyPlanTimer } from '../lib/bus'
|
||||
import { showToast } from '../lib/toast'
|
||||
|
||||
// ---- 长期计划 ----
|
||||
@@ -144,6 +144,7 @@ async function toggleTimer(p: PlanItem) {
|
||||
await startPlanTimer(p.id as number)
|
||||
showToast('开始计时:' + p.title)
|
||||
}
|
||||
notifyPlanTimer()
|
||||
await load()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user