vue中路由在新的标签页打开

如下

let routeData = this.$router.resolve({
    name: 'commercialPreview',
    query: {cylType: this.$route.query.cylType},
    params: { id: this.id }
})
window.open(routeData.href, '_blank')

 

posted @ 2019-09-27 17:10  番茄土豆西红柿  阅读(3580)  评论(0编辑  收藏  举报
TOP