this.$router.push() 在新窗口怎么打开

let url = this.$router.resolve({
    path:"/trend/competitiveTrend",
    query:{
         	type:id,
          	row:JSON.stringify(item)//对象(接收时需要加JSON.parse())
        }
	})
    window.open(url.href)//注意,需要加href

接收:

this.row= JSON.parse(this.$route.query.row); 
this.type = this.$route.query.type;

标签