|
|
@@ -116,7 +116,10 @@ const transform: AxiosTransform = {
|
|
|
}
|
|
|
if (apiUrl && isString(apiUrl)) {
|
|
|
const firstCode = config.url?.split('/')[1];
|
|
|
- if (!proxyFixList || !proxyFixList.includes(firstCode)) {
|
|
|
+ const currentPort = window.location.port;
|
|
|
+ if (currentPort === '8062' && !proxyFixList.includes(firstCode)) {
|
|
|
+ config.url = `/dataCenter${config.url}`;
|
|
|
+ } else if (!proxyFixList || !proxyFixList.includes(firstCode)) {
|
|
|
config.url = `${apiUrl}${config.url}`;
|
|
|
}
|
|
|
// if (config.url?.startsWith('/gasServerImg')) {
|