Skip to content
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

手工敲地址/#/component等地址,会报错,觉得路由这一块要好好整理下 #64

Closed
ChasLui opened this issue Oct 23, 2017 · 2 comments

Comments

@ChasLui
Copy link

ChasLui commented Oct 23, 2017

TypeError: Cannot read property 'children' of undefined

@lison16
Copy link
Contributor

lison16 commented Oct 23, 2017

这确实是个没考虑到的问题,那个人觉得最好的方式就是在路由里给一集路由配置一个重定向,重定向到第一个二级路由:

path: '/component',
redirect: '/component/text-editor',

@lison16
Copy link
Contributor

lison16 commented Oct 23, 2017

现在最新版iview-admin已不需要一级菜单配置重定向,在地址栏输入/component等地址会自动跳转到他对应的第一个子路由

@lison16 lison16 closed this as completed Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants