vue 路由带参跳转
vue 路由带参跳转
1、路由配置文件中(router.js或router/index.js等)中应设置:
// 跳转至router 携带id和name
{
path: 'router/:id/:name',
name: 'router',
component: () => import('@/views/router/router'),
meta: { title: '页面名称'},
}
2、跳转执行处应设置:
this.$router.push({
na
原创
2021-03-11 14:31:14 ·
202 阅读 ·
0 评论