vue路由传多个参数_vue路由怎么传两个参数
慕莱坞森发:this.$router.push({path:'/article_comment_manager',query:{data:res.data}})接:export d...
·
慕莱坞森
发: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)