模板跳转
<router-link :to='"/article/"+item.id'>跳转</router-link>
ts 跳转
// 字符串 router.push('/home/first') // 对象 router.push({ path: '/home/first' }) // 命名的路由 router.push({ name: 'home', params: { userId: wise }})
模板跳转
<router-link :to='"/article/"+item.id'>跳转</router-link>
ts 跳转
// 字符串 router.push('/home/first') // 对象 router.push({ path: '/home/first' }) // 命名的路由 router.push({ name: 'home', params: { userId: wise }})
文章数
437
浏览数
97326
今日发布
0