Notification.vue: transition via vuejs, trying to generate unique key

This commit is contained in:
Sockenklaus
2021-10-21 11:25:17 +02:00
parent 7e5ab9b445
commit d5fdda6337
3 changed files with 30 additions and 21 deletions

View File

@@ -3,8 +3,8 @@ import { defineStore, acceptHMRUpdate } from 'pinia'
export const useNotifications = defineStore('notifications', {
state: () => {
return {
/**@type {{type: string, text: string}[]} */
notifications: new Array<{type: string, text: string}>()
/**@type {{type: string, text: string, randomKey: string}[]} */
notifications: new Array<{type: string, text: string, randomKey: string}>()
}
},