vue路由跳转并打开新的窗口

const {href}=this.$router.resolve({
                 path:'',   //跳转路径
                 query:{
                 //需要传的参数
                  }});
window.open(href,'_blank');

 

posted @ 2021-07-18 17:54  straightforward  阅读(230)  评论(0)    收藏  举报