ffplayout/stores/index.ts

19 lines
378 B
TypeScript
Raw Normal View History

2023-01-11 04:54:25 -05:00
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 = ''
},
},
})