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

Vue-Router 多层路由

  •  
  •   anshengmecom · 2016 年 10 月 14 日 · 1094 次点击
    这是一个创建于 3463 天前的主题,其中的信息可能已经有所发展或是发生改变。

    比如下面的路径:

    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   ·   Solana   ·   3854 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 10:34 · PVG 18:34 · LAX 03:34 · JFK 06:34
    ♥ Do have faith in what you're doing.