Browse Source

perf: 处理发布失败

wangcz 6 years ago
parent
commit
c95a37f03e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      plugins/city-service.js

+ 3 - 3
plugins/city-service.js

@@ -1,5 +1,5 @@
 import axios from 'axios'
-import store from '~store'
+// import store from '~store'
 
 const service = axios.create({
   withCredentials: true,
@@ -10,8 +10,8 @@ service.interceptors.request.use(config => {
   // is server render, use ${baseUrl} directly rather than ${proxyUrl}
   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
+    // 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
   }