|
@@ -1,5 +1,5 @@
|
|
|
import axios from 'axios'
|
|
|
-import store from '~store'
|
|
|
+
|
|
|
|
|
|
const service = axios.create({
|
|
|
withCredentials: true,
|
|
@@ -10,8 +10,8 @@ service.interceptors.request.use(config => {
|
|
|
|
|
|
if (typeof window === 'undefined') {
|
|
|
config.url = process.env.baseUrl + '/city/' + process.env.cityDomain + config.url
|
|
|
- config.headers.cookie = store.state.option.cookies + '; ' + store.state.option.sessionId
|
|
|
- config.headers['User-Agent'] = store.state.option.userAgent
|
|
|
+
|
|
|
+
|
|
|
} else {
|
|
|
config.url = '/city/' + process.env.cityDomain + config.url
|
|
|
}
|