vue 中新窗口打开vue页面 (this.$router.resolve)

 
vue里下载文件方法之一:

 
https://blog.csdn.net/qq_40282732/article/details/102529039

 
https://www.cnblogs.com/mouseleo/p/11364333.html

 
https://www.cnblogs.com/chr506029589/p/13577339.html

 

 

1.router.js内写跳转的新页面的路由

 2.在点击跳转的事件内写

复制代码
outsideLink () {
    let {href}= this.$router.resolve({
    path: "/newLinkPage",  
  });
  window.open(href, '_blank');
}
复制代码

 

posted @ 2021-04-29 11:50  China Soft  阅读(1181)  评论(0编辑  收藏  举报