-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
axios按照你封装,然后then()里面不执行 #10
Comments
你catch一下,看是不是请求出错了 |
解决了,我看了下是你在配置axios时,判断放回状态成功时用的是reject导致后续不执行,我换成resolve就可以(我理解的)。 |
@YTU94 |
了解了,谢谢 |
每个服务器返回的成功标志不一样,大部分返回status=200 //返回状态判断 把楼主的if (!res.data.success) 改为 if(!res.status==200) 我本地测试OK |
我想问下为什么,是不是因为使用promise的原因,求help
The text was updated successfully, but these errors were encountered: