Vue中动态路由

(1)在router.js 中配置动态路由,注意:路径path后面加id就是动态添加值 路由:注意 :id 是个动态值 { path: '/questions/:id', name: 'questions', component: Questions } 引入该路由: //下面引入动态路由 import Questions from './compone
相关文章
相关标签/搜索