File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const auth = useAuthStore()
2323 :avatar =" auth.user.avatar"
2424 :meta =" auth.user.user_name" >
2525 <UFNavBarUserCardButton
26- label =" Dashboard "
26+ label =" Admin Panel "
2727 @click =" router.push({ name: 'admin.dashboard' })" />
2828 <UFNavBarUserCardButton
2929 label =" My Account"
Original file line number Diff line number Diff line change @@ -7,9 +7,8 @@ import { SidebarMenuItems } from '@userfrosting/sprinkle-admin/components'
77<template >
88 <NavBar />
99 <UFSideBar >
10- <UFSideBarLabel label =" NAVIGATION " />
10+ <UFSideBarLabel label =" Admin Panel " />
1111 <SidebarMenuItems />
12- <UFSideBarItem :to =" { name: 'test' }" faIcon =" person-digging" label =" Test" />
1312 </UFSideBar >
1413 <UFMainContent >
1514 <RouterView />
Original file line number Diff line number Diff line change @@ -30,31 +30,9 @@ const router = createRouter({
3030 ]
3131 } ,
3232 {
33- path : '' ,
33+ path : '/admin ' ,
3434 component : ( ) => import ( '../layouts/LayoutDashboard.vue' ) ,
35- children : [
36- ...AdminRoutes ,
37- {
38- path : '/test' ,
39- meta : {
40- auth : {
41- redirect : { name : 'account.login' }
42- }
43- } ,
44- children : [
45- {
46- path : '' ,
47- name : 'test' ,
48- component : ( ) => import ( '../views/TestView.vue' )
49- } ,
50- {
51- path : 't/:slug' ,
52- name : 'test.slug' ,
53- component : ( ) => import ( '../views/TestViewDetail.vue' )
54- }
55- ]
56- }
57- ]
35+ children : [ ...AdminRoutes ]
5836 }
5937 ]
6038} )
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments