Vue中動態路由

(1)在router.js 中配置動態路由,注意:路徑path後面加id就是動態添加值 路由:注意 :id 是個動態值 { path: '/questions/:id', name: 'questions', component: Questions } 引入該路由: //下面引入動態路由 import Questions from './compone
相關文章
相關標籤/搜索