mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-18 10:39:20 +08:00
修改服务启动逻辑
This commit is contained in:
@@ -17,9 +17,9 @@ const Error = () => {
|
||||
const getHealthStatus = (needLoading: boolean = true) => {
|
||||
needLoading && setLoading(true);
|
||||
request
|
||||
.get(`${config.apiPrefix}public/health`)
|
||||
.get(`${config.apiPrefix}health`)
|
||||
.then(({ error, data }) => {
|
||||
if (data?.status === 1) {
|
||||
if (data?.status === 'ok') {
|
||||
if (retryTimes.current > 1) {
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
|
||||
Reference in New Issue
Block a user