3
0
Fork 0

chore(request): 相对路径替换绝对路径

This commit is contained in:
ywk 2025-04-09 16:45:58 +08:00
parent 4ecc3ed932
commit 076038ea73
3 changed files with 55 additions and 49 deletions

View File

@ -13,12 +13,12 @@ module.exports = (vm) => {
//#ifdef DEV_SERVER //#ifdef DEV_SERVER
console.log('DEV_SERVER') console.log('DEV_SERVER')
config.baseURL = 'http://t-app.beida413.com/prod-api'; config.baseURL = '/prod-api';
//#endif //#endif
//#ifdef QA_SERVER //#ifdef QA_SERVER
console.log('QA_SERVER') console.log('QA_SERVER')
config.baseURL = 'http://t-app.beida413.com/prod-api'; config.baseURL = '/prod-api';
//#endif //#endif
config.timeout = 30000; config.timeout = 30000;
return config return config

View File

@ -77,7 +77,13 @@
"mode": "hash" "mode": "hash"
}, },
"devServer": { "devServer": {
"https" : false "https": false,
"proxy": {
"/prod-api": {
"target": "http://t-app.beida413.com",
"changeOrigin": true
}
}
} }
}, },
"fallbackLocale": "zh-Hans" "fallbackLocale": "zh-Hans"

View File

@ -15,5 +15,5 @@ module.exports = {
// 'ruRU':'ruRU', // 'ruRU':'ruRU',
// 'frFR':'frFR', // 'frFR':'frFR',
}, },
} },
} }