"frontend/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "bd8eadb75b92601e4aabe4353b0abd9600af7836"
Commit 260c1521 authored by shaw's avatar shaw
Browse files

fix(frontend): 修复重启后健康检查接口路径错误

将 /api/health 改为 /health,与后端实际注册的路由一致
parent 9f4c1ef9
...@@ -491,7 +491,7 @@ async function checkServiceAndReload() { ...@@ -491,7 +491,7 @@ async function checkServiceAndReload() {
for (let i = 0; i < maxRetries; i++) { for (let i = 0; i < maxRetries; i++) {
try { try {
const response = await fetch('/api/health', { const response = await fetch('/health', {
method: 'GET', method: 'GET',
cache: 'no-cache' cache: 'no-cache'
}) })
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment