Update various configuration files, components, and assets; enhance notification system and API endpoints; improve documentation and styles across the application.
This commit is contained in:
22
stores/user.js
Normal file
22
stores/user.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export const useUserStore = defineStore({
|
||||
id: "user",
|
||||
state: () => ({
|
||||
username: null,
|
||||
roles: null,
|
||||
isAuth: false,
|
||||
}),
|
||||
persist: true,
|
||||
actions: {
|
||||
setUsername(username) {
|
||||
this.username = username;
|
||||
},
|
||||
setRoles(roles) {
|
||||
this.roles = roles;
|
||||
},
|
||||
setIsAuthenticated(isAuth) {
|
||||
this.isAuth = isAuth;
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user