Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
260c1521
Commit
260c1521
authored
Feb 06, 2026
by
shaw
Browse files
fix(frontend): 修复重启后健康检查接口路径错误
将 /api/health 改为 /health,与后端实际注册的路由一致
parent
9f4c1ef9
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/common/VersionBadge.vue
View file @
260c1521
...
...
@@ -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
'
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment