component是獲取跳轉(zhuǎn)頁面的地址
方式一:
和引入組件一樣 先把要跳轉(zhuǎn)的頁面引入router js文件中再進(jìn)行調(diào)用
方式二:
直接在component獲取要跳轉(zhuǎn)頁面的位置
component:()=>import(' 跳轉(zhuǎn)頁面地址')
path是路由參數(shù),當(dāng)路徑匹配到當(dāng)前路由參數(shù)時(shí),就會(huì)跳轉(zhuǎn)component所對(duì)應(yīng)的頁面組件
聯(lián)系客服