You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
528 B
23 lines
528 B
/*---------------------------------------------------------------
|
|
| 请求接口封装 |
|
|
---------------------------------------------------------------*/
|
|
|
|
import axios from "axios"
|
|
|
|
|
|
axios.defaults.withCredentials=true
|
|
axios.defaults.crossDomain=true
|
|
|
|
function request(method,url,data={},headers={},progress=()=>{}){
|
|
let that=this;
|
|
return new Promise((reslove)=>{
|
|
let returnIniData = {
|
|
httpCode: "",
|
|
data: {},
|
|
msg: "",
|
|
code: "",
|
|
};
|
|
|
|
|
|
})
|
|
}
|