路由跳转后让指定的菜单高亮显示
{
path: '',
component: Layout,
children: [
{ path: '/home', name: 'Home', component: () => import('@/views/home/index'), meta: { title: '点餐', icon: 'order1' }},
{ path: '/menu', name: 'Menu', component: () => import('@/views/home/menu'), meta: { title: '餐桌', icon: 'order1' }, hidden: true }
]
},
https://zhuanlan.zhihu.com/p/...
亲测有用