add destroy() for message component
add destroy() for message component
This commit is contained in:
parent
47e5839630
commit
d367168798
3 changed files with 10 additions and 1 deletions
|
@ -89,5 +89,10 @@ export default {
|
|||
if (options.duration) {
|
||||
defaultDuration = options.duration;
|
||||
}
|
||||
},
|
||||
destroy () {
|
||||
let instance = getMessageInstance();
|
||||
messageInstance = null;
|
||||
instance.destroy();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue