blob: dfb5850c712239f1046ce2e37f40aadd6304f8aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { type Event } from "./schedule";
import { defineStore } from "pinia";
export const useErrorStore = defineStore('error', () => {
const error = ref(null as string | null)
const setError = (newError: string) => {
error.value = newError
}
const clearError = () => {
error.value = null
}
return {error, setError, clearError}
})
|