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-06-23 15:55  空瓶子装满了  阅读(3719)  评论(0编辑  收藏  举报