• 请不要在回答技术问题时复制粘贴 AI 生成的内容
yantianqi
V2EX  ›  程序员

vue-router 传递参数、二级路由

  •  
  •   yantianqi · Mar 1, 2018 · 2853 views
    This topic created in 2996 days ago, the information mentioned may be changed or developed.

    二级路由下怎么传递参数呢?

    {
        path: '/vueRouter',
        component: vueRouter,
        children: [{
            path: 'aaa',
            component: aaa
        }]
    }
    
    1 replies    2018-03-01 15:32:55 +08:00
    per
        1
    per  
       Mar 1, 2018 via iPhone
    带在 url 里面,this.$router.params 取
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4642 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 00:11 · PVG 08:11 · LAX 17:11 · JFK 20:11
    ♥ Do have faith in what you're doing.