Browse Source

request Api

李帅 1 month ago
parent
commit
1b038027c0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/utils/request.js

+ 2 - 2
src/utils/request.js

@@ -16,8 +16,8 @@ export let isRelogin = { show: false };
16
 axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
16
 axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
17
 // 创建axios实例
17
 // 创建axios实例
18
 const service = axios.create({
18
 const service = axios.create({
19
-  // baseURL: process.env.VUE_APP_BASE_API,
20
-  baseURL: "http://39.105.121.97:8080/api",
19
+  baseURL: process.env.VUE_APP_BASE_API,
20
+  // baseURL: "http://39.105.121.97:8080/api",
21
   // baseURL: "http://106.74.15.131:81/api",
21
   // baseURL: "http://106.74.15.131:81/api",
22
   
22
   
23
   // axios中请求配置有baseURL选项,表示请求URL公共部分
23
   // axios中请求配置有baseURL选项,表示请求URL公共部分