Replies: 2 comments 3 replies
-
问题类请在Discussion提问 问题分两类。
createAlova({
responded(response) {
if (response.status > 200) {
// 处理异常,比如关闭loading
}
}
})
createAlova({
responded: {
// ...
onError(response) {
// 处理异常,比如关闭loading
}
}
})
|
Beta Was this translation helpful? Give feedback.
1 reply
-
useRequest中的loading不需要你自己关闭,不管成功与否会自己关闭。 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
请详细描述bug
全局拦截器中,当响应出现异常,如何在全局关闭loading
复现链接
No response
复现步骤
无
期望的表现
No response
alova 版本
2.16.0
设备/浏览器/浏览器版本
No response
额外的说明
No response
Beta Was this translation helpful? Give feedback.
All reactions