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