设置activeMenu不生效
来源:11-1 创建电子书上传组件

weixin_慕慕2166866
2020-03-29
写回答
2回答
-
weixin_慕慕2166866
提问者
2020-03-29
export const asyncRoutes = [ { path: '/book', name: 'book', redirect: '/book/create', component: Layout, meta: { title: '图书管理', icon: 'documentation', roles: ['admin', 'editor'] }, children: [ { path: '/book/create', name: 'bookCreate', component: () => import('@/views/book/create'), meta: { title: '上传图书', icon: 'edit', roles: ['admin'] } }, { path: '/book/edit', name: 'bookEdit', component: () => import('@/views/book/edit'), meta: { title: '编辑图书', icon: 'edit', roles: ['admin'] }, hidden: true, activeMenu: '/book/list' }, { path: '/book/list', name: 'bookList', component: () => import('@/views/book/create'), meta: { title: '图书列表', icon: 'list', roles: ['editor', 'admin'] } } ] }, { path: '*', redirect: '/', hidden: true } ]
022020-03-29 -
扬_灵
2020-03-29
同学你好,请上传下代码部分
00
相似问题