按照官網多次調用會出現這種問題
修改之后
data() { return { notifyPromise: Promise.resolve() } }, methods: { notify(msg) { this.notifyPromise = this.notifyPromise.then(this.$nextTick).then(()=>{ this.$notify({ title: "標題", message: msg, dangerouslyUseHTMLString: true, duration: 0, }) }) }, }
這樣多次調用即完美解決