vue中路由跳转新开页面-笔记

代码写法

 const { href } = this.$router.resolve({
     path: '相关路径'
  });
  window.open(href, '_blank');

你可能感兴趣的:(vue中路由跳转新开页面-笔记)