bugfix: notice & message 's destroy method.
This commit is contained in:
parent
b087f93efa
commit
1c82a9abbf
4 changed files with 8 additions and 4 deletions
|
@ -25,10 +25,10 @@ Notification.newInstance = properties => {
|
|||
notification.close(name);
|
||||
},
|
||||
component: notification,
|
||||
destroy () {
|
||||
destroy (element) {
|
||||
notification.closeAll();
|
||||
setTimeout(function() {
|
||||
document.body.removeChild(document.getElementsByClassName('ivu-message')[0].parentElement);
|
||||
document.body.removeChild(document.getElementsByClassName(element)[0]);
|
||||
}, 500);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue