-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asyncRoutes加载的路由,无法显示在侧边栏上 #3035
Comments
已经解决 |
请问是哪里的问题呢,我也碰到了 |
求指点,哪里的问题?我也遇到了,好容易过了next({ ...to, replace: true })死循环的坑,现在有遇到这个问题了,fk |
这个问题我知道了,需要修改下slidebar组件代码中遍历路由那块儿,修改后的关键点如下图。参考的其他人的:https://www.i4k.xyz/article/qq_40981137/104976733 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report(问题描述)
asyncRoutes加载的路由,无法显示在侧边栏上
Steps to reproduce(问题复现步骤)
Screenshot or Gif(截图或动态图)
Link to minimal reproduction(最小可在线还原demo)
export const asyncRoutes = [
{
path: '/home',
name: 'sccc',
component: Layout,
meta: {
title: '管理员',
icon: 'dashboard',
roles: ['ROLE_ADMIN'],
},
children: [
{
path: '/user',
name: 'scc',
component: Home,
meta: {
title: 's',
}
}
]
},
{
path: '/121',
name: '121',
component: Layout,
// hidden:true,
meta: {
title: '登录ssss',
roles: ['ROLE_ADMIN'],
Other relevant information(格外信息)
The text was updated successfully, but these errors were encountered: