longyvfengyun
2023-11-20 55c60e84df6378b5e79bb5ebf1c3ce8dc281c69f
src/assets/js/axios.js
@@ -3,10 +3,8 @@
  // 跨域请求
  axios.defaults.baseURL = 'http://110.40.173.177:8005/';
} else {
  //axios.defaults.baseURL = location.protocol + '//' + location.host + '/envir/';
  axios.defaults.baseURL = "http://110.40.173.177:8005/";
  axios.defaults.baseURL = location.protocol + '//' + location.hostname + ':8005/';
}
// 添加请求拦截器
axios.interceptors.request.use(function (config) {
  // 在发送请求之前做些什么