修改初始系统状态逻辑已经错误页面

This commit is contained in:
whyour
2023-05-07 23:40:37 +08:00
parent 481646501c
commit f66390eabd
6 changed files with 69 additions and 24 deletions
+2 -1
View File
@@ -13,7 +13,8 @@
.code-box {
position: relative;
display: inline-block;
width: 80%;
width: 80vw;
height: 90vh;
margin: 16px;
background-color: #ffffff;
border: 1px solid rgba(5, 5, 5, 0.06);
+25 -3
View File
@@ -17,7 +17,7 @@ const Error = () => {
needLoading && setLoading(true);
request
.get(`${config.apiPrefix}public/health`)
.then(({ status, error }) => {
.then(({ error, status }) => {
if (status === 1) {
return reloadUser();
}
@@ -53,10 +53,32 @@ const Error = () => {
<div className="browser-markup"></div>
<Alert
type="error"
message="服务启动超时,请检查如下日志或者进入容器执行 ql -l check 后刷新再试"
message={
<Typography.Title level={5} type="danger">
</Typography.Title>
}
description={
<Typography.Text type="danger">
<div>
<Typography.Link href="https://github.com/whyour/qinglong/issues/new?assignees=&labels=&template=bug_report.yml">
issue
</Typography.Link>
</div>
<div>
1. 宿 docker run --rm -v
/var/run/docker.sock:/var/run/docker.sock
containrrr/watchtower -cR &lt;&gt;
</div>
<div>2. ql -l checkql -l update</div>
</Typography.Text>
}
banner
/>
<Typography.Paragraph className="log">{data}</Typography.Paragraph>
<Typography.Paragraph code className="log">
{data}
</Typography.Paragraph>
</div>
) : (
<PageLoading tip="启动中,请稍后..." />
+1 -1
View File
@@ -219,7 +219,7 @@ const Initialization = () => {
<Button
type="primary"
onClick={() => {
history.push('/login');
window.location.reload();
}}
>