How to render new navigation based on admin/client Vue.js

I m currently working on a e-commerce website and i started to make the admin pages (dashboard , CRM , Products etc). I have a navigation set for the main page ( e.g. Home , About us , Shop , Profile etc) and i need to have a separate navigation showed only for the admin pages or for the all admin endpoints. How to do that ?

Relevant pieces of code : These is index.js in vue-router

import { createRouter, createWebHistory } from 'vue-router'
import IndexPage from '../components/IndexPage.vue'
import RegisterPage from '../components/UserLogInAnRegister/RegisterPage.vue'
import LoginPage from '../components/UserLogInAnRegister/LoginPage.vue'
import ConfirmationPage from '../components/UserHelpers/Confirmation.vue'
import ForgotPasswordPage from '../components/UserHelpers/ForgotPassword.vue'
import EmailForForgotPasswordPage from '../components/UserHelpers/EmailForForgotPassword.vue'
import LogoutPage from '../components/UserHelpers/LogoutPage.vue'
import ProfilePage from '../components/UserData/ProfilePage.vue'
import PersonalProfilePage from '../components/UserData/PersonalData.vue'
import ChangingDataConfirmation from '../components/UserHelpers/ChangingAccountData.vue'
import AdressesData from '../components/UserData/AddressesData.vue'
import OrdersData from '@/components/UserData/OrdersData.vue'
import ProductsData from '@/components/Products/ProductsMainPage.vue'
import AdminLogin from '@/components/AdminPages/AdminLogin.vue'
import AdminDashboard from '@/components/AdminPages/AdminDashboard.vue'
import store from '@/store'

const routes = [
  {
    path: '/',
    name: 'index',
    component: IndexPage
  },
  {
    path: '/home',
    name: 'index',
    component: IndexPage
  },
  {
    path: "/register",
    name: 'register',
    component: RegisterPage
  },
  {
    path: "/login",
    name: 'login',
    component: LoginPage
  },
  {
    path: "/confirmare/:token",
    name: "confirmation",
    component: ConfirmationPage
  },
  {
    path: "/forgotpassword/:token",
    name: "forgotpassword",
    component: ForgotPasswordPage
  },
  {
    path: "/forgotpassword",
    name: "emailForForgotPassword",
    component: EmailForForgotPasswordPage
  },
  {
    path: "/logout",
    name: "LogoutPage",
    component: LogoutPage
  },
  {
    path: "/profile",
    name: "ProfilePage",
    component: ProfilePage
  },
  {
    path: "/profile/data",
    name: "PersonalProfileData",
    component: PersonalProfilePage
  },
  {
    path: "/account/changeEmail/:token",
    name: "ChangingAccountData",
    component: ChangingDataConfirmation
  },
  {
    path: "/profile/addresses",
    name: "Adresses",
    component: AdressesData
  },
  {
    path: "/profile/orders",
    name: "Orders",
    component: OrdersData
  },
  {
    path: "/shop",
    name: "ProductsMainPage",
    component: ProductsData
  },
  {
    path: "/admin/login",
    name: "AdminLogin",
    component: AdminLogin,
    meta: {requiresAuth: true,requiresAdmin: true},
  },
  {
    path: "/admin/dashboard",
    name: "AdminDashboard",
    component: AdminDashboard,
    meta: {requiresAuth: true,requiresAdmin: true},
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

router.beforeEach((to, from, next) => {
  const isAuth = store.getters.isAuthenticated;
  const isAdmin = store.getters.isAdmin;

  if (to.matched.some(record => record.meta.requiresAuth && record.meta.requiresAdmin)) {
    if (isAuth && isAdmin) {
      next();
    } else {
      next({ name: 'login' });
    }
  } else if (to.matched.some(record => record.meta.requiresAuth)) {
    if (isAuth) {
      next();
    } else {
      next({ name: 'login' });
    }
  } else {
    next();
  }
});


export default router

This is the AdminNavBar.vue

<template>
    <v-navigation-drawer v-if="sidebar" @click="toggleSidebar()" app>
        <v-list-item title="Administrare Texx"></v-list-item>
        <v-list 
        center >
            <v-list-item v-for="item in navAdminItems" 
            :key="item.title" 
            :to="item.path"
            :title="item.title">
            <v-icon center>{{ item.icon }}</v-icon>
                {{ item.title }}
            </v-list-item>
        </v-list>
    </v-navigation-drawer>
</template>


<script>
export default {
    name: 'AdminNavBar',
    data(){
        return {
            sidebar: false,
            navAdminItems: [
                {title: 'Dashboard' , path:'/admin/dashboard' , icon:'mdi-monitor-dashboard'},
                {title: 'Produse' , path:'/admin/products', icon:'mdi-cart'},
                {title: 'Clienti' , path:'/admin/customers', icon:'mdi-account'},

            ]
        }
    },
    methods: {
        toggleSidebar(){
            this.sidebar = !this.sidebar;
        }
    }
}
</script>

This is the App.vue

<template>
  <v-app v-if="!showAdminNavBar">
    <MyNavBar />
    <v-main>
      <router-view   />
    </v-main>
    <FooterComp />
  </v-app>
  <v-app v-else>
    <AdminNavBar/>
    <v-main>
      <router-view />
    </v-main>
  </v-app>
</template>

<script>
import MyNavBar from './components/MyNavBar.vue'
import FooterComp from './components/FooterComp.vue'
import AdminNavBar from './components/AdminPages/layout/AdminNavBar.vue';
import { useRoute } from 'vue-router';
import { computed } from 'vue';

export default {
  name: 'App',
  components: {
    MyNavBar,
    FooterComp,
    AdminNavBar
  },
setup(){
  const route = useRoute();
  const showAdminNavBar = computed(() => route.meta.requiresAdmin)

  return {showAdminNavBar}
},

}
</script>

And this is an example of the AdminDashboard where i want to see the admin navigation : AdminDashboard.vue

<template>
    <div >
      <div >
        <h1>Admin Dashboard</h1>
      </div>
    </div>
  </template>

<script>
import AdminNavBar from './layout/AdminNavBar.vue';


export default {
    name:"AdminDashboard",
    components: AdminNavBar,
    data(){
        return{

        }
    }
}
</script>

I read that i need to create separate layouts , but i m already far into the code and i cannot refactor that much . Is there another way how to do that . Also if u need something , please ask and i will post other pieces of relevant code if you need

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật