We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@xia5800 一级路由没有子路由但是 children 存在的时候会出问题
// 用户菜单转换成vue-router的路由,并添加到vue-router中 menuToRoute(menus as UserMenu[]).forEach((route) => { // 如果route是一级路由且没有子路由。添加到/路由下 // if (!route.children) { if (!route.children || route.children.length === 0) { rootRouter.children = rootRouter.children.concat(route); router.addRoute(rootRouter); } else { router.addRoute(route); } });
The text was updated successfully, but these errors were encountered:
很抱歉回复晚了,github不经常上,感谢您提供的代码。
Sorry, something went wrong.
No branches or pull requests
@xia5800
一级路由没有子路由但是 children 存在的时候会出问题
The text was updated successfully, but these errors were encountered: