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

不支持路由数据里的二级以上路由吗? #4

Open
comkis opened this issue May 31, 2018 · 4 comments
Open

不支持路由数据里的二级以上路由吗? #4

comkis opened this issue May 31, 2018 · 4 comments

Comments

@comkis
Copy link

comkis commented May 31, 2018

"path": "/businessRouter",
    "icon": "iconfont icon-yewu1",
    "name": "businessRouter",
    "title": "业务管理",
    "component": "Main",
    "children": [
      {
        "path": "pactManage",
        "name": "pactManage",
        "title": "合同管理",
        "component": "businessBox/pactManage/pactManage"
      }

这是正常的路由数据控制。
我在children里面再嵌一层children不行吗?
路由是配置成功了,可以三层地址打开页面,但是点击菜单他打开的却是去掉/businessRouter的。直接是#/pactRouter

"path": "/businessRouter",
    "icon": "iconfont icon-yewu1",
    "name": "businessRouter",
    "title": "业务管理",
    "component": "Main",
    "children": [
      {
        "path": "pactRouter",
        "name": "pactRouter",
        "title": "合同管理",
        "component": "businessBox/pactManage/pactRouter",
        "children": [
          {
            "path": "pactManage",
            "name": "pactManage",
            "title": "合同列表",
            "component": "businessBox/pactManage/pactManage"
          }
        ]
      }
@zzayne
Copy link
Owner

zzayne commented Jun 1, 2018

三级路由没有验证过,现在可能不行。之前的iview菜单组件貌似没有三级菜单,这几天我更新下iview版本验证下,有问题的话会修复更新。

@comkis
Copy link
Author

comkis commented Jun 5, 2018

我感觉加了个判断二级有没有children然后是否放进菜单的路由就可以了吧。
其实我这样就是想要把路由多分几组管理(其实这里我之前是蠢操作route访问来for出面包屑的)
上面也说了路由是注册成功的,因为路径访问可以成功,但好像重定向被忽略了什么的。@zzayne

@qzmly100
Copy link

qzmly100 commented Nov 8, 2018

现在的iview有三级菜单了,我试着改了一下都不行。有什么办法能支持一下三级菜单吗?

@zzayne
Copy link
Owner

zzayne commented Nov 11, 2018

组件要升级吧,这个脚手架的组件应该不行

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

3 participants