如图所示,我在调用后端接口时调用了Notification这个组件并且设置了duration为0不会自动关闭,而我拿到result的时候需要手动关闭Notification这个组件,求教该如何写
2 回答

米琪卡哇伊
TA贡献1998条经验 获得超6个赞
调用 Notification 或 this.$notify 会返回当前 Notification 的实例。如果需要手动关闭实例,可以调用它的 close 方法。Notification
文档说的很清楚了
const notify = this.$notify({duration:0})
notify.close()
添加回答
举报
0/150
提交
取消