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
console.log('DEV_SERVER')
config.baseURL = 'http://t-app.beida413.com/prod-api';
config.baseURL = '/prod-api';
//#endif
//#ifdef QA_SERVER
console.log('QA_SERVER')
config.baseURL = 'http://t-app.beida413.com/prod-api';
config.baseURL = '/prod-api';
//#endif
config.timeout = 30000;
return config

View File

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

View File

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