vue-router參數傳遞

方法一 爲了實現點擊按鈕實現參數的傳遞,在router-link中使用query屬性來進行傳遞。首先建立一個新的組件Profile 在index.js中導入該組件,而且調用該組件 const Profile = () => import('../components/Profile') { path: '/profile', component: Profile } 以後
相關文章
相關標籤/搜索