ffplayout/stores/index.ts
2023-01-11 10:54:25 +01:00

19 lines
378 B
TypeScript

import { defineStore } from 'pinia'
export const useIndex = defineStore('index', {
state: () => ({
showAlert: false,
alertVariant: 'success',
alertMsg: '',
}),
getters: {},
actions: {
resetAlert() {
this.showAlert = false
this.alertVariant = 'success'
this.alertMsg = ''
},
},
})