V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
anshengmecom
V2EX  ›  问与答

Vue-Router 多层路由

  •  
  •   anshengmecom · 2016-10-14 16:58:37 +08:00 · 897 次点击
    这是一个创建于 2904 天前的主题,其中的信息可能已经有所发展或是发生改变。

    比如下面的路径:

    http://localhost/users/list/info/UID
    

    我写成下面的路由配置貌似不太对

    {
        path: '/users', component: Users,
    
        children: [
          {
            path: 'list', component: UsersList,
            children: [
              {path: 'info/:id', component: UsersInfo},
              {path: 'change/:id', component: ChangeUsers},
            ]
          },
        ]
      },
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1179 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:20 · PVG 02:20 · LAX 11:20 · JFK 14:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.