mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 09:34:31 +08:00
修改服务启动逻辑
This commit is contained in:
@@ -101,9 +101,9 @@ export default function () {
|
||||
|
||||
const getHealthStatus = () => {
|
||||
request
|
||||
.get(`${config.apiPrefix}public/health`)
|
||||
.get(`${config.apiPrefix}health`)
|
||||
.then((res) => {
|
||||
if (res?.data?.status === 1) {
|
||||
if (res?.data?.status === 'ok') {
|
||||
getSystemInfo();
|
||||
} else {
|
||||
history.push('/error');
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -6,10 +6,10 @@ import {
|
||||
} from '@codemirror/view';
|
||||
import { RangeSet, RangeSetBuilder } from '@codemirror/state';
|
||||
|
||||
const infoWord = /\[\ue6f5info\]/g;
|
||||
const debugWord = /\[\ue67fdebug\]/g;
|
||||
const warnWord = /\[\ue880warn\]/g;
|
||||
const errorWord = /\[\ue602error\]/g;
|
||||
const infoWord = /\[ℹ️info/g;
|
||||
const debugWord = /\[⚠️debug/g;
|
||||
const warnWord = /\[❌warn/g;
|
||||
const errorWord = /\[🐛error/g;
|
||||
|
||||
const customWordClassMap = {
|
||||
info: 'system-log-info',
|
||||
|
||||
Reference in New Issue
Block a user