From a31f7cbe43d4d1d8d728fbe590e5d40e73fcedde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=85=E8=86=80?= Date: Fri, 23 Oct 2026 23:23:48 +0800 Subject: [PATCH] fix(console): show overview loading failures Failed overview requests must not look like an empty dashboard or a successful refresh. Show the reason while retaining prior data. --- app/components/AdminHome.vue | 3 +++ app/components/ConsolePage.vue | 16 ++++++++++++++-- app/composables/useI18n.ts | 5 +++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/app/components/AdminHome.vue b/app/components/AdminHome.vue index f1d9d85..15ff13c 100644 --- a/app/components/AdminHome.vue +++ b/app/components/AdminHome.vue @@ -8,6 +8,8 @@ const props = defineProps<{ groupsLoading: boolean; logsLoading: boolean; metricsLoading: boolean; + /** Why the latest load failed (what is shown may be empty or older). */ + error?: string; }>(); const { t } = useI18n(); @@ -72,6 +74,7 @@ function fmtTime(ts: number): string {