按照官网多次调用会出现这种问题
修改之后
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, }) }) }, }
这样多次调用即完美解决