ff-admin/src/stores/auth.ts

18 lines
286 B
TypeScript
Raw Normal View History

2024-08-23 14:42:32 +02:00
import { defineStore } from "pinia";
export const useAuthStore = defineStore("auth", {
state: () => {
return {
authCheck: false,
};
},
actions: {
setSuccess() {
this.authCheck = true;
},
setFailed() {
this.authCheck = false;
},
2024-08-23 14:42:32 +02:00
},
});