diff --git a/web/src/features/home/HomeView.vue b/web/src/features/home/HomeView.vue index 7b1dab1..ad9e75c 100644 --- a/web/src/features/home/HomeView.vue +++ b/web/src/features/home/HomeView.vue @@ -18,6 +18,7 @@ interface HomeSummary { total_hours: string; total_score: string; points: string | number | null; + hours_source: "api" | "history"; limited?: boolean; } @@ -158,6 +159,8 @@ function withMinutes(value: string) { return `${value} 分钟`; } +const historyHoursNote = "由于Euniv学时统计缺陷/统计延后,本系统已开启采用当月学习历史统计本月学时,可能会导致本系统中显示的本月学时与Euniv官方网站不一样。"; + const facts = computed(() => { const current = summary.value; return [ @@ -187,6 +190,7 @@ function asSummary(value: unknown): HomeSummary | null { total_hours: String(text("total_hours") ?? ""), total_score: String(text("total_score") ?? ""), points: typeof row.points === "number" || typeof row.points === "string" ? row.points : null, + hours_source: row.hours_source === "history" ? "history" : "api", limited: row.limited === true, }; } @@ -990,6 +994,7 @@ onUnmounted(() => {
+

{{ historyHoursNote }}