From 260c152166717747302797cc09c6c76be73de31a Mon Sep 17 00:00:00 2001 From: shaw Date: Fri, 6 Feb 2026 19:53:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E4=BF=AE=E5=A4=8D=E9=87=8D?= =?UTF-8?q?=E5=90=AF=E5=90=8E=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 /api/health 改为 /health,与后端实际注册的路由一致 --- frontend/src/components/common/VersionBadge.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/common/VersionBadge.vue b/frontend/src/components/common/VersionBadge.vue index 57de9c6c..d4937156 100644 --- a/frontend/src/components/common/VersionBadge.vue +++ b/frontend/src/components/common/VersionBadge.vue @@ -491,7 +491,7 @@ async function checkServiceAndReload() { for (let i = 0; i < maxRetries; i++) { try { - const response = await fetch('/api/health', { + const response = await fetch('/health', { method: 'GET', cache: 'no-cache' })