소스 검색

axios baseUrl修改为/

yangc 8 년 전
부모
커밋
0adc7673e0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plugins/axios.js

+ 1 - 1
plugins/axios.js

@@ -4,7 +4,7 @@ import store from '~store'
 
 const service = axios.create({
   withCredentials: true,
-  baseURL: process.env.proxyUrl || process.env.baseUrl
+  baseURL: '/'
 })
 
 service.interceptors.request.use(config => {