Notification.vue: transition via vuejs, trying to generate unique key
This commit is contained in:
@@ -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}>()
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user