能不能一下传两个参数啊?<router-link :to="{path:'/userart', query:{ id:scope.row.id}}">this.$route.query.id
2 回答

慕妹3242003
TA贡献1824条经验 获得超6个赞
<router-link :to="{path:'/userart', query:{ id001:scope.row.id01, id002:scope.row.id02......}}">
取得时候从query拿出来就可以了

慕莱坞森
TA贡献1810条经验 获得超4个赞
发:this.$router.push({ path: '/article_comment_manager', query: { data: res.data } }) 接:
export default {
data() { return { formValidate: { id: '', articleId: '', uid: '', content: '' } } }, methods: { getParams() { if(this.$route.query.data!=null){ this.formValidate = this.$route.query.data } } }, mounted() { this.getParams() } }
添加回答
举报
0/150
提交
取消