Skip to content

Commit 518b328

Browse files
committed
hide navbar in shell
1 parent 714519e commit 518b328

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/App.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<script setup lang="ts">
22
import { onMounted } from 'vue'
3-
import { RouterView, useRouter } from 'vue-router'
3+
import { RouterView, useRoute, useRouter } from 'vue-router'
44
import { useAuthStore } from './stores/auth'
55
66
const router = useRouter()
7+
const route = useRoute()
78
const authStore = useAuthStore()
89
910
const handleLogout = () => {
@@ -39,7 +40,7 @@ onMounted(async () => {
3940
<template>
4041
<div class="min-vh-100 d-flex flex-column bg-light">
4142
<!-- Header -->
42-
<header class="navbar navbar-expand-lg header-theme">
43+
<header v-if="!route.meta.hideNavbar" class="navbar navbar-expand-lg header-theme">
4344
<div class="container-fluid">
4445
<router-link to="/" class="navbar-brand mb-0 h1 fw-bold ps-3 text-dark text-decoration-none"
4546
>Deskconn</router-link

src/router/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const router = createRouter({
5454
path: '/desktops/:realm',
5555
name: 'desktop-shell',
5656
component: () => import('../views/DesktopShellView.vue'),
57-
meta: { requiresAuth: true },
57+
meta: { requiresAuth: true, hideNavbar: true },
5858
},
5959
],
6060
})

0 commit comments

Comments
 (0)