ffplayout/stores/index.ts

19 lines
390 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: 'alert-success',
2023-01-11 04:54:25 -05:00
alertMsg: '',
}),
getters: {},
actions: {
resetAlert() {
this.showAlert = false
this.alertVariant = 'alert-success'
2023-01-11 04:54:25 -05:00
this.alertMsg = ''
},
},
})