diff --git a/components/message/index.js b/components/message/index.js index 2d78272..e2df361 100644 --- a/components/message/index.js +++ b/components/message/index.js @@ -89,5 +89,10 @@ export default { if (options.duration) { defaultDuration = options.duration; } + }, + destroy () { + let instance = getMessageInstance(); + messageInstance = null; + instance.destroy(); } } \ No newline at end of file diff --git a/local/routers/msg.vue b/local/routers/msg.vue index bcb66b2..d17318b 100644 --- a/local/routers/msg.vue +++ b/local/routers/msg.vue @@ -4,6 +4,7 @@ +