|
|
@ -49,7 +49,16 @@ export function request(options) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export function request_ip(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} // 使用创建的实例
|
|
|
|
options = {...options, instance} // 使用创建的实例
|
|
|
|
// 请求拦截器
|
|
|
|
// 请求拦截器
|
|
|
|