瀏覽代碼

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({
 const service = axios.create({
   withCredentials: true,
   withCredentials: true,
-  baseURL: process.env.proxyUrl || process.env.baseUrl
+  baseURL: '/'
 })
 })
 
 
 service.interceptors.request.use(config => {
 service.interceptors.request.use(config => {