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

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

  •  
  •   yantianqi · Mar 1, 2018 · 2872 views
    This topic created in 3006 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   ·   2675 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 10:57 · PVG 18:57 · LAX 03:57 · JFK 06:57
    ♥ Do have faith in what you're doing.