跳转页面写入方法
// 本页面跳转到详情
watchDetail(item) {
console.log(item)
const { href } = this.$router.resolve({
path: '/resourcedirectory/resourceDataDetails',
query: {
entityId:item.ID,
publicityId:this.publicityId
}
});
window.open(href, '_blank');
}
跳转目标页面接受参数 this.$route.query.?;
created() {
this.queryParam.publicityId = this.$route.query.publicityId;
this.searchEsParam.id = this.$route.query.entityId;
this.searchEsParam.publicityId = this.$route.query.publicityId;
console.log(this.$route.query.entityId)
console.log(this.$route.query.publicityId)
},