完善后台框架及路由菜单

This commit is contained in:
南浔
2025-06-12 18:58:00 +08:00
parent b02c61ecd8
commit ebb32a8cf0
12 changed files with 209 additions and 125 deletions
+34 -1
View File
@@ -34,12 +34,45 @@ const routes = [
path: '/layout',
component: () => import('@/views/layout/Home.vue'),
children: [
{ path: 'index', component: () => import('@/views/layout/Dashboard.vue') }
{
path: 'index',
component: () => import('@/views/layout/Dashboard.vue'),
meta: {
title: '主页',
icon: 'home',
showInMenu: true,
showInUser:false,
isHome:true
}
},
{
path: 'users',
component: () => import('@/views/layout/Users.vue'),
meta: {
title: '用户管理',
icon: 'users',
showInMenu: true,
showInUser:false,
isHome:false
}
},
{
path: 'test',
component: () => import('@/views/layout/Users.vue'),
meta: {
title: '用户管理',
icon: 'inbox',
showInMenu: true,
showInUser:false,
isHome:false
}
},
]
}
]
const router = new VueRouter({
mode: 'history',
routes
})