Ant design pro vue 新增的菜单选中菜单丢失请问有人遇到过吗
下面的sys照着它定义的,刷新选中丢失了,
// dashboard
{
path: '/dashboard',
name: 'dashboard',
redirect: '/dashboard/workplace',
component: RouteView,
meta: { title: 'menu.dashboard', keepAlive: true, icon: bxAnaalyse, permission: ['dashboard'] },
children: [
{
path: '/dashboard/analysis',
name: 'Analysis',
component: () => import('@/views/dashboard/Analysis'),
meta: { title: 'menu.dashboard.analysis', keepAlive: false, permission: ['dashboard'] }
}
]
},
//自己定义的
{
path: '/sys',
component: RouteView,
redirect: '/sys/role',
name: 'sys',
// hideChildrenInMenu: true,
meta: { title: 'menu.sys', icon: 'user', keepAlive: true, permission: ['role'] },
children: [
{
path: '/sys/role',
name: 'Role',
component: () => import('@/views/system/Permission'),
meta: {
title: 'menu.sys.permission',
hidden: true,
keepAlive: true,
permission: ['role']
}
}
]
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论