const {href} = this.$router.resolve({
path: data.router
})
window.open(href, '_blank')
注:其中data.router为跳转页的path路径
通过this.$router.resolve可以拿到当前路径
附: 官方文档
错误记录:
window.open(data.router)
通过这种方式打开新页面后会自动路由重定向,在路由后面加#/login跳转到登录页