From 4828a1cfcec43224f79084ad772545fb6dcf7634 Mon Sep 17 00:00:00 2001 From: RogerWork Date: Tue, 31 Dec 2024 16:19:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=B7=E6=B1=82=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/index.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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} // 使用创建的实例 // 请求拦截器