Closed Yuxiaogang-Gavin closed 2 years ago
这样配置虽然能出来内页,但是点击菜单,还是会跳回空白页。 export default { path: '/home', name: '门户首页', component: DEFAULT_LAYOUT, meta: { locale: 'menu.home', requiresAuth: true, icon: 'icon-dashboard', order: 0, hideChildrenInMenu:true }, children: [ { path: '', name: '门户首页', component: () => import('@/views/dashboard/workplace/index.vue'), meta: { locale: 'menu.dashboard.workplace', requiresAuth: true, roles: ['*'], hideInMenu:true, }, }, ], };
@Yuxiaogang-Gavin 例如下图这样就可以
@sqlFC 谢谢,后来自己也发现了。子菜单的hideInMenu不能设为true
Basic Info
Extra info
这样配置虽然能出来内页,但是点击菜单,还是会跳回空白页。 export default { path: '/home', name: '门户首页', component: DEFAULT_LAYOUT, meta: { locale: 'menu.home', requiresAuth: true, icon: 'icon-dashboard', order: 0, hideChildrenInMenu:true }, children: [ { path: '', name: '门户首页', component: () => import('@/views/dashboard/workplace/index.vue'), meta: { locale: 'menu.dashboard.workplace', requiresAuth: true, roles: ['*'], hideInMenu:true, }, }, ], };