chore(request): 相对路径替换绝对路径
This commit is contained in:
parent
4ecc3ed932
commit
076038ea73
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -15,5 +15,5 @@ module.exports = {
|
|||
// 'ruRU':'ruRU',
|
||||
// 'frFR':'frFR',
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue