uni.request 请求拦截

This commit is contained in:
shikong 2024-10-16 23:07:39 +08:00
parent 951d0a0799
commit 656f5264c8
Signed by: Shikong
GPG Key ID: BD85FF18B373C341

View File

@ -25,9 +25,6 @@ const httpInterceptor = {
options.header.token = token options.header.token = token
} }
}, },
fail(err){
console.error("请求失败", err)
},
returnValue(results) { returnValue(results) {
return new Promise((resolve, reject)=>{ return new Promise((resolve, reject)=>{
results.then(resp=>{ results.then(resp=>{