uni.request 请求拦截
This commit is contained in:
parent
951d0a0799
commit
656f5264c8
@ -25,9 +25,6 @@ const httpInterceptor = {
|
||||
options.header.token = token
|
||||
}
|
||||
},
|
||||
fail(err){
|
||||
console.error("请求失败", err)
|
||||
},
|
||||
returnValue(results) {
|
||||
return new Promise((resolve, reject)=>{
|
||||
results.then(resp=>{
|
||||
|
Loading…
Reference in New Issue
Block a user