|
@@ -10,7 +10,11 @@ const service = axios.create({
|
|
|
service.interceptors.request.use(config => {
|
|
service.interceptors.request.use(config => {
|
|
|
// is server render, use ${baseUrl} directly rather than ${proxyUrl}
|
|
// is server render, use ${baseUrl} directly rather than ${proxyUrl}
|
|
|
if (typeof window === 'undefined') {
|
|
if (typeof window === 'undefined') {
|
|
|
- config.url = process.env.baseUrl + config.url
|
|
|
|
|
|
|
+ if (config.url.indexOf('/inquiry') === 0) {
|
|
|
|
|
+ config.url = process.env.commonUrl + config.url
|
|
|
|
|
+ } else {
|
|
|
|
|
+ config.url = process.env.baseUrl + config.url
|
|
|
|
|
+ }
|
|
|
config.headers.cookie = store.state.option.cookies + '; ' + store.state.option.sessionId
|
|
config.headers.cookie = store.state.option.cookies + '; ' + store.state.option.sessionId
|
|
|
config.headers['User-Agent'] = store.state.option.userAgent
|
|
config.headers['User-Agent'] = store.state.option.userAgent
|
|
|
}
|
|
}
|