mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 09:34:31 +08:00
修复启动逻辑
This commit is contained in:
@@ -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));
|
||||
};
|
||||
|
||||
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user