修复起点: 统一问题清单修复前基线
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* 所有网关 API 调用使用 fetch() 直连,不走 Vol.Pro 后端中转
|
||||
*/
|
||||
|
||||
const GW_BASE = 'http://localhost:5100'
|
||||
const GW_BASE = 'http://192.168.3.108:5100'
|
||||
|
||||
/** GET 请求网关 */
|
||||
export async function gwGet(url: string): Promise<any> {
|
||||
|
||||
@@ -22,7 +22,7 @@ if (apiConfig.baseURL && apiConfig.baseURL[env]) {
|
||||
axios.defaults.baseURL = apiConfig.baseURL[env];
|
||||
} else {
|
||||
// 降级方案,确保系统能正常运行
|
||||
axios.defaults.baseURL = 'http://localhost:9100/';
|
||||
axios.defaults.baseURL = 'http://192.168.3.108:9100/';
|
||||
}
|
||||
|
||||
// 设置大屏地址
|
||||
@@ -30,10 +30,10 @@ if (apiConfig.dataViewUrl && apiConfig.dataViewUrl[env]) {
|
||||
dataViewUrl = apiConfig.dataViewUrl[env];
|
||||
} else {
|
||||
// 降级方案,确保系统能正常运行
|
||||
dataViewUrl = 'http://localhost:9200/';
|
||||
dataViewUrl = 'http://192.168.3.108:9200/';
|
||||
}
|
||||
//后台接口地址
|
||||
//axios.defaults.baseURL = 'http://localhost:9100/'
|
||||
//axios.defaults.baseURL = 'http://192.168.3.108:9100/'
|
||||
if (!axios.defaults.baseURL.endsWith('/')) {
|
||||
axios.defaults.baseURL += '/'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user