opnform/client/stores/errors.js

16 lines
252 B
JavaScript
Raw Normal View History

2023-12-09 14:47:03 +00:00
import { defineStore } from 'pinia'
export const useErrorsStore = defineStore('errors', {
state: () => ({
content: null
}),
actions: {
set (error) {
this.content = error
},
clear () {
this.content = null
}
}
})