mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[bugfix] Toast: clear in multiple mode (#2635)
This commit is contained in:
@@ -51,6 +51,8 @@ function Toast(options = {}) {
|
|||||||
toast.value = false;
|
toast.value = false;
|
||||||
|
|
||||||
if (!singleton && !isServer) {
|
if (!singleton && !isServer) {
|
||||||
|
clearTimeout(toast.timer);
|
||||||
|
queue = queue.filter(item => item !== toast);
|
||||||
document.body.removeChild(toast.$el);
|
document.body.removeChild(toast.$el);
|
||||||
toast.$destroy();
|
toast.$destroy();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user