mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Toast: clear in multiple mode (#2635)
This commit is contained in:
parent
d0a316c77b
commit
e4327a3ebd
@ -51,6 +51,8 @@ function Toast(options = {}) {
|
||||
toast.value = false;
|
||||
|
||||
if (!singleton && !isServer) {
|
||||
clearTimeout(toast.timer);
|
||||
queue = queue.filter(item => item !== toast);
|
||||
document.body.removeChild(toast.$el);
|
||||
toast.$destroy();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user