User dropdown
User id in acquisition about
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import { useAuthStore } from '@/auth';
|
||||
import { RouterView } from 'vue-router';
|
||||
import { computed } from 'vue';
|
||||
import { RouterView, useRoute } from 'vue-router';
|
||||
import { Sidebar } from './sidebar';
|
||||
|
||||
const route = useRoute();
|
||||
const authStore = useAuthStore();
|
||||
|
||||
const hideSidebar = computed(() => {
|
||||
return !authStore.isLoggedIn || route.name === 'callback' || route.name === 'about';
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<template v-if="!authStore.isLoggedIn">
|
||||
<template v-if="hideSidebar">
|
||||
<RouterView />
|
||||
</template>
|
||||
<template v-else>
|
||||
|
||||
Reference in New Issue
Block a user