ff-admin/src/stores/auth.ts

17 lines
286 B
TypeScript

import { defineStore } from "pinia";
export const useAuthStore = defineStore("auth", {
state: () => {
return {
authCheck: false,
};
},
actions: {
setSuccess() {
this.authCheck = true;
},
setFailed() {
this.authCheck = false;
},
},
});