this.$router.push({path: `/describe/${id}`})
路由配置接受:{path: '/describe/:id'}
二、params
this.$router.push({
name: 'Describe',
params: {
id: id
}
})
三、query
this.$router.push({
path: '/describe',
query: {
id: id
}
})
2024-01-25 16:32:40
this.$router.push({path: `/describe/${id}`})
路由配置接受:{path: '/describe/:id'}
二、params
this.$router.push({
name: 'Describe',
params: {
id: id
}
})
三、query
this.$router.push({
path: '/describe',
query: {
id: id
}
})