diff --git a/src/request/index.js b/src/request/index.js index 60f88c3..2c6b183 100644 --- a/src/request/index.js +++ b/src/request/index.js @@ -49,7 +49,16 @@ export function request(options) { } export function request_ip(options) { - const instance = axios.create({...config}) + const instance = axios.create({ // method: 'get', + baseURL: 'http://172.16.1.222', + baseWS: 'ws://172.16.1.63:8000', + headers: { + 'Content-Type': 'application/json;charset=UTF-8', + 'Authorization': 'token 4e63b8854974c1fdac9deb891fd74dc145b53f85' + }, + timeout: 60000, + withCredentials: true, + responseType: 'json',}) options = {...options, instance} // 使用创建的实例 // 请求拦截器