chore: cluster system load service

This commit is contained in:
jialin
2026-01-12 12:24:34 +08:00
parent 2e5b075d1b
commit 05ad296b43
7 changed files with 105 additions and 9 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ import {
} from '@/atoms/watch-request';
import { WatchEventType } from '@/config';
import { request } from '@umijs/max';
import axios from 'axios';
import axios, { CancelTokenSource } from 'axios';
import _ from 'lodash';
import { useEffect, useRef, useState } from 'react';
@@ -36,7 +36,7 @@ export const sliceJsonStr = (text: string) => {
return result;
};
export const createAxiosToken = () => {
export const createAxiosToken = (): CancelTokenSource => {
const { CancelToken } = axios;
const source = CancelToken.source();
return source;