diff --git a/web/app/page.tsx b/web/app/page.tsx index 4acbf96..3475c31 100644 --- a/web/app/page.tsx +++ b/web/app/page.tsx @@ -694,10 +694,13 @@ function MonthDashboard({ attributes, plans, planRecords, goals, projects, proje ; } -function CalendarDrawerPlan({ plan, mode, onEditPlan }: { plan: PlanItem; mode: "week" | "month"; onEditPlan: (id: string) => void }) { +function CalendarDrawerPlan({ plan, mode, readOnly = false, onEditPlan }: { plan: PlanItem; mode: "week" | "month"; readOnly?: boolean; onEditPlan: (id: string) => void }) { const unscheduled = mode === "week" && plan.timeStatus === "unscheduled"; + const timeLabel = mode === "month" ? "✓ 已完成" : unscheduled ? "时间未配置" : (plan.timeSegments?.length ?? 0) > 1 ? `${plan.timeSegments!.length} 个时段` : `${plan.start}—${plan.end}`; return
{mode === "week" ? rangeLabel : monthLabel} · Asia/Shanghai
没有安排
{content === "timeline" ? "没有完成记录" : "没有安排"}