vue-router 之打开新的页面

版权声明:草原上的雄鹰 https://blog.csdn.net/sinat_36729274/article/details/81542388

1.不传参数

let myurl="/contractc-info/detail/" + contType + "/" + scope.row.pk_contract; //是你的自定义的路由字符串拼接

let routeData = this.$router.resolve({ path: myurl });

window.open(routeData.href, '_blank');

2.传参数

、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、

let routeData = this.$router.resolve({ path: '/reportpreview', query: { id: id } });

window.open(routeData.href, '_blank');

猜你喜欢

转载自blog.csdn.net/sinat_36729274/article/details/81542388
今日推荐