Notifications bug fix
This commit is contained in:
@ -10,6 +10,9 @@ export const useNotificationStore: StoreDefinition = defineStore('notifications'
|
||||
},
|
||||
actions: {
|
||||
addNotification(notification: Notification) {
|
||||
if (!notification.id) {
|
||||
notification.id = Math.random().toString(16)
|
||||
}
|
||||
this.notifications.push(notification)
|
||||
},
|
||||
removeNotification(id: string) {
|
||||
|
Reference in New Issue
Block a user