fix: wrap fetch for injecting headers

This commit is contained in:
jialin
2026-06-03 15:50:06 +08:00
committed by jialin
parent 39374eafda
commit 9705818b15
5 changed files with 78 additions and 59 deletions
+3
View File
@@ -15,6 +15,7 @@ import {
} from '@/services/profile/apis';
import { fetchSystemConfig } from '@/services/system/query-system-config';
import { isOnline } from '@/utils';
import { installTenantFetch } from '@/utils/install-fetch';
import {
IS_FIRST_LOGIN,
readState,
@@ -24,6 +25,8 @@ import '@gpustack/core-ui/style.css';
import { RequestConfig, history, request as umiRequest } from '@umijs/max';
import { message } from 'antd';
installTenantFetch();
// only for the first login and access from http://localhost
const checkDefaultPage = async (userInfo: any) => {