feat: add inline remarks for tasks and schedules

This commit is contained in:
ji ruo committed 2026-10-19 09:17:59 +08:00
1 parent 6c940f4403
commit 316889f76a
17 files changed
+454 -14

No files matched your search

+1
View File
@@ -1357,6 +1357,7 @@ function route(m: string, path: string, seg: string[], q: URLSearchParams, b: Re
const task = mockTasks.find((item) => item.id === seg[1]);
if (!task) throw new Error("任务不存在");
if (typeof b.name === "string") task.name = b.name.trim();
if (typeof b.remark === "string") task.remark = b.remark.trim();
if (typeof b.pinned === "boolean") {
task.pinned = b.pinned;
task.pinned_at = b.pinned ? (task.pinned_at ?? new Date().toISOString()) : null;