vue 跳转路由新开页

const { href } = this.$router.resolve({
  path: '/switch/test/preview',
  query: {
    paperId: RowData.id,
    id: this.courseId
  }
});
window.open(href, '_blank');

  

posted @ 2021-08-28 15:54  秦士振  阅读(36)  评论(0编辑  收藏  举报