Browse Source

heyang-修改安全检查

heyang 1 year ago
parent
commit
0aa2d2aac5
3 changed files with 6 additions and 6 deletions
  1. 2 2
      .env.development
  2. 2 2
      .env.production
  3. 2 2
      src/utils/request.js

+ 2 - 2
.env.development

@@ -26,11 +26,11 @@ VUE_APP_ENV = 'development'
 # 矿大
 # VUE_APP_BASE_API = 'lab.sxitdlc.com/labSystem/'
 
-#VUE_APP_BASE_API = 'lab.sxitdlc.com/labAppTest/'
+#VUE_APP_BASE_API = 'lab.zjznai.com/zhlabSystem/'
 
 # ####################内网接口配置####################
 
-#VUE_APP_BASE_LOCAL_API = '192.168.1.43/labSystem/'
+#VUE_APP_BASE_LOCAL_API = '192.168.1.12/labSystem/'
 
 
 

+ 2 - 2
.env.production

@@ -7,10 +7,10 @@ VUE_APP_ENV = 'production'
 
 # ####################外网接口配置####################
 
- VUE_APP_BASE_API = 'lab.zjznai.com/labSystem/'
+ VUE_APP_BASE_API = 'lab.zjznai.com/zhlabSystem/'
 
 
 # ####################内网接口配置####################
 
- VUE_APP_BASE_LOCAL_API = '192.168.251.2/labSystem/'
+ VUE_APP_BASE_LOCAL_API = '192.168.1.12/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 c05515a4-e4ab-4086-b39d-52d9f2e0f705';//`Bearer ${localStorage.getItem('access_token')`;
-axios.defaults.headers.common["Authorization"] = 'Bearer '+localStorage.getItem('Authorization')+''
+axios.defaults.headers.common["Authorization"] = 'Bearer 0dec4ce9-1074-400e-8ffb-e00d635efdb8';//`Bearer ${localStorage.getItem('access_token')`;
+//axios.defaults.headers.common["Authorization"] = 'Bearer '+localStorage.getItem('Authorization')+''
 
 //设置超时
 axios.defaults.timeout = 15000;