src/assets/js/axios.js
@@ -5,6 +5,9 @@ // 跨域请求 axios.defaults.baseURL = 'http://localhost:8090/screen'; axios.defaults.withCredentials = true; // 保持请求头 } else { axios.defaults.baseURL = '/screen'; axios.defaults.withCredentials = true; // 保持请求头 } // 添加请求拦截器 axios.interceptors.request.use(function (config) {