第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

vue-router 的redirect參數(shù)傳遞

vue-router 的redirect參數(shù)傳遞

慕婉清6462132 2018-07-18 14:40:36
1、vue-router 做嵌套路由傳值的時(shí)候,跳轉(zhuǎn)到product頁(yè)面的時(shí)候,已經(jīng)能夠收到傳過(guò)來(lái)的值,但是我想跳的是默認(rèn)ProA ,做了redirect重定向,能夠跳轉(zhuǎn)到ProA頁(yè)面,但是product獲取不到傳過(guò)來(lái)的值,比如說(shuō)id的值,這種情況要怎么解決?  routes: [{            path: '/',            name: 'Index',            component: Index         },         {            path: '/product/:id',            name: 'Product',            redirect: '/product/:id/producta',            component: Product,            children: [{                path: 'producta',                name: 'ProA',                component: ProA             }, {                path: 'productb',                name: 'ProB',                component: ProB             }, {                path: 'productc',                name: 'ProC',                component: ProC             }]         }     ]
查看完整描述

2 回答

?
xxxx1111

TA貢獻(xiàn)1條經(jīng)驗(yàn) 獲得超0個(gè)贊

你這問(wèn)題解決了嗎,我跟你同樣的問(wèn)題


查看完整回答
反對(duì) 回復(fù) 2018-11-20
?
慕姐8265434

TA貢獻(xiàn)1813條經(jīng)驗(yàn) 獲得超2個(gè)贊

routes: [{            path: '/',            name: 'Index',            component: Index
        },
        {            path: '/product/:id',            name: 'Product',            redirect: '/product/producta/:id',            component: Product
        },
        {            path: '/product/producta/:id',            name: 'ProA',            component: ProA
        }, {            path: '/product/productb',            name: 'ProB',            component: ProB
        }, {            path: '/product/productc',            name: 'ProC',            component: ProC
        }
    ]


查看完整回答
反對(duì) 回復(fù) 2018-07-18
  • 2 回答
  • 0 關(guān)注
  • 2007 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)