vue notification 关闭方法
vue notification 关闭方法
可以通过以下方法关闭 Vue Notification:
1. 通过调用 hide 方法来关闭单个通知:深得民心
```javascript。
this.$notify(。
title: 'Notification Title',。
message: 'Notification Message',。探究的近义词
}).hide()。
```。
提踵怎么做2. 通过调用 clear 方法来关闭所有通知:
```javascript。
this.$notify(。
title: 'Notification Title',。
message: 'Notification Message',。
})。
this.$notify(。
title: 'Another Notification Title',。
天然沙滩
message: 'Another Notification Message',。
})。
this.$notify(。
脚踝疼痛title: 'Yet Another Notification Title',。
小熊英语
message: 'Yet Another Notification Message',。小学作文评语
})。
this.$notify.clear()。
```。
以上两种方法均可在 Vue 组件的方法中使用。如果使用的是全局 Notification,可以在 Vue 实例上调用。
农村环境整治```javascript。
ify.clear() // 关闭所有通知。