-
Notifications
You must be signed in to change notification settings - Fork 771
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
Toast.hide doesn't work properly #341
Comments
@xxyan0205 你好
|
support for toast show and hide synchronous calls #341
目前toast的show和hide是无法同步调用的,因为show内部存在异步逻辑(为了支持内部popup box的动画,需要等待最外层容器展示后再开始执行动画,否则动画无法执行。ps: 目前vue的版本可以同步了),所以当同步调用hide时,popup box还未展示,所以产生关不掉的效果。 当时的那个issue修复后来引发了其他问题,后来又被去掉了。 |
明白了,谢谢 |
support for toast show and hide synchronous calls #341
场景:请求后台接口时使用Toast.loading展示"加载中",请求完成后调用Toast.hide隐藏
问题:如果调用方式形如
就会出现第二个请求的Toast.loading无法被Toast.hide关闭的问题(即使多次调用也无法关闭)
Mand Mobile Version
出现问题时版本:1.6.0
尝试升级到1.6.8,没有解决
OS Version & Browser Version
Win10 17134 & Chrome 72
Recurring Steps
Expectant Behaviors
Toast提示能够被Toast.hide关闭
Actual Behaviors
Toast提示无法被Toast.hide关闭
The text was updated successfully, but these errors were encountered: