我点击第一个查看按钮跳转
这里显示1 西游记 吴承恩 100 请问如何实现
现在页面显示的数据已经是后台数据库的数据了
我点击第一个查看按钮跳转
这里显示1 西游记 吴承恩 100 请问如何实现
现在页面显示的数据已经是后台数据库的数据了
this.$router.push({
name: 'describe',
params: {
id: id
}
})
this.$route.params.id
//跳转页面
this.$router.push({
path: '/describe',
query: {
id: id
}
})
//页面内取路由参数
this.$route.query.id
<router-link :to="{path: '/describe', query: { year:this.year_select,month:this.month_select,admin_user_id:key }}">
查看
</router-link>