<span @click="seeExa(scope.row)" class="mr15">查看试卷</span>
seeExa(e) {
window.console.log("查询成功",e);
this.$router.push("/Exa/" + e.id+"/"+e.paperName);
}
path: "/Exa/:id/:name",name: "Exa"404_0@完成以上的代码,就可以页面之间的带参数跳转了,这种方法会在url后面显示出属性值信息,存在一定的安全风险。 @H_404_0@ @H_404_0@4.最后一步,就是在“查看试卷.vue"页面进行参数的接收,利用“this.$route.“工具便可以接收:@H_404_0@根据以上方式,便可实现vue页面之间带参数的跳转了 @H_404_0@created: function() { this.myId = this.$route.params.id; this.myName=.$route.params.name; }