Guest navigation state
This commit is contained in:
@@ -5,7 +5,7 @@ export const useUserStore = defineStore('user', () => {
|
||||
const user = ref(null)
|
||||
const roles = computed(() => new Set(user.value?.roleData?.map(r => r.name) ?? []));
|
||||
const loaded = ref(false);
|
||||
const state = computed(() => user.value.state);
|
||||
const state = computed<string | undefined>(() => user.value?.state || undefined);
|
||||
const isLoggedIn = computed(() => user.value !== null)
|
||||
|
||||
async function loadUser() {
|
||||
|
||||
Reference in New Issue
Block a user