feat: eslint 적용 및 관련 코드 일괄 수정
This commit is contained in:
@@ -2,20 +2,20 @@ import { defineStore } from 'pinia';
|
||||
import { ref } from 'vue';
|
||||
|
||||
export interface UserInfo {
|
||||
id: string;
|
||||
username: string;
|
||||
displayName: string;
|
||||
roles: string[];
|
||||
id: string;
|
||||
username: string;
|
||||
displayName: string;
|
||||
roles: string[];
|
||||
}
|
||||
|
||||
export const useAuthStore = defineStore('auth', () => {
|
||||
const user = ref<UserInfo | null>(null);
|
||||
const isLoggedIn = ref(false);
|
||||
const user = ref<UserInfo | null>(null);
|
||||
const isLoggedIn = ref(false);
|
||||
|
||||
function setUser(userData: UserInfo | null) {
|
||||
user.value = userData;
|
||||
isLoggedIn.value = !!userData;
|
||||
}
|
||||
function setUser(userData: UserInfo | null) {
|
||||
user.value = userData;
|
||||
isLoggedIn.value = !!userData;
|
||||
}
|
||||
|
||||
return { user, isLoggedIn, setUser };
|
||||
return { user, isLoggedIn, setUser };
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user