19 lines
378 B
TypeScript
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 = ''
|
||
|
},
|
||
|
},
|
||
|
})
|