yangc %!s(int64=8) %!d(string=hai) anos
pai
achega
38a86c4e2a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/axios.js

+ 1 - 1
plugins/axios.js

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