Merge pull request #926 from SuanmoSuanyangTechnology/feature/package_zy

feat(web): package menu
This commit is contained in:
yingzhao
2026-04-17 13:37:04 +08:00
committed by GitHub
30 changed files with 828 additions and 163 deletions

View File

@@ -23,7 +23,6 @@ import { clearAuthData } from './auth';
import { message } from 'antd';
import { refreshTokenUrl, refreshToken, loginUrl, logoutUrl } from '@/api/user'
import i18n from '@/i18n'
import { SYS_API_PREFIX } from '@/api/package'
/**
* Standard API response structure
@@ -75,10 +74,6 @@ let requests: RequestQueueItem[] = [];
// Request interceptor
service.interceptors.request.use(
(config) => {
console.log('config', config, config.url?.startsWith(SYS_API_PREFIX))
if (config.url?.startsWith(SYS_API_PREFIX)) {
config.baseURL = '';
}
if (!config.headers.Authorization) {
const token = cookieUtils.get('authToken');
if (token) {