修复启动逻辑

This commit is contained in:
whyour
2025-05-17 17:25:50 +08:00
parent ec3d61a713
commit 472a3088df
4 changed files with 34 additions and 18 deletions
+4 -1
View File
@@ -110,7 +110,10 @@ export default function () {
}
})
.catch((error) => {
history.push('/error');
const responseStatus = error.response.status;
if (responseStatus !== 401) {
history.push('/error');
}
})
.finally(() => setInitLoading(false));
};
+7 -1
View File
@@ -36,6 +36,12 @@ const Error = () => {
getHealthStatus(false);
}, 3000);
})
.catch((error) => {
const responseStatus = error.response.status;
if (responseStatus === 401) {
history.push('/login');
}
})
.finally(() => needLoading && setLoading(false));
};
@@ -74,7 +80,7 @@ const Error = () => {
<div>{intl.get('2. 容器内执行 ql check、ql update')}</div>
<div>
{intl.get(
'3. 如果无法解决,容器内执行 pm2 logs,拷贝执行结果'
'3. 如果无法解决,容器内执行 pm2 logs,拷贝执行结果',
)}
<Typography.Link href="https://github.com/whyour/qinglong/issues/new?assignees=&labels=&template=bug_report.yml">
{intl.get('提交 issue')}