heyang 1 год назад
Родитель
Сommit
697f307a2f
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      .env.development
  2. 2 2
      src/utils/request.js

+ 2 - 2
.env.development

@@ -15,7 +15,7 @@ VUE_APP_ENV = 'development'
 # 88服务器
 # VUE_APP_BASE_API = '192.168.1.88/labSystem'
 # 43服务器
-# VUE_APP_BASE_API = '192.168.1.43/labSystem/'
+ VUE_APP_BASE_API = '192.168.1.43/labSystem/'
 # 柴
 # VUE_APP_BASE_API = '192.168.1.9:8080'
 # 暨大
@@ -32,7 +32,7 @@ VUE_APP_ENV = 'development'
 
 # ####################内网接口配置####################
 
-VUE_APP_BASE_LOCAL_API = '192.168.1.14:8080'
+VUE_APP_BASE_LOCAL_API = '192.168.1.43/labSystem/'
 
 
 

+ 2 - 2
src/utils/request.js

@@ -37,8 +37,8 @@ axios.defaults.withCredentials = false;
 
 // 允许跨域
 axios.defaults.headers.post["Access-Control-Allow-Origin-Type"] = "*";
-//axios.defaults.headers.common["Authorization"] = 'Bearer 67c01153-c618-4540-9adf-d774e524c0ad';//`Bearer ${localStorage.getItem('access_token')`;
-axios.defaults.headers.common["Authorization"] = 'Bearer '+localStorage.getItem('Authorization')+''
+axios.defaults.headers.common["Authorization"] = 'Bearer e3f9c4ef-c934-4972-99a5-d3df7e2d7263';//`Bearer ${localStorage.getItem('access_token')`;
+//axios.defaults.headers.common["Authorization"] = 'Bearer '+localStorage.getItem('Authorization')+''
 
 //设置超时
 axios.defaults.timeout = 15000;