优化接口返回提示
parent
042b5384e4
commit
8e06fc4d8a
|
@ -150,12 +150,11 @@ const request = (method, url, options, ifLogin) => {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
checkError(res)
|
checkError(res)
|
||||||
|
uni.showToast({
|
||||||
|
title:res.data.msg,
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
// uni.showToast({
|
|
||||||
// title:res.data.msg,
|
|
||||||
// icon:'none'
|
|
||||||
// })
|
|
||||||
|
|
||||||
}
|
}
|
||||||
} else if(res.statusCode==500) {
|
} else if(res.statusCode==500) {
|
||||||
flag = false;
|
flag = false;
|
||||||
|
@ -183,8 +182,16 @@ const request = (method, url, options, ifLogin) => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
uni.showToast({
|
||||||
|
title:'接口错误',
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
checkError(res)
|
checkError(res)
|
||||||
|
uni.showToast({
|
||||||
|
title:'接口错误',
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: e => {
|
fail: e => {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue