方法一:

<router-link :to="{path: '/跳转的页面路由'}"  target="_blank"  tag="a">

tag=“a” 可以省去不写,默认也会解释为a标签
“tag” 属 性 :具有 tag 属性的 router-link 会被渲染成相应的标签

方法二

const {href} = this.$router.resolve({
                path: "/跳转的页面路由",
                query:{//要传的参数
                    id:this.id
                }
            });
            window.open(href, '_blank');//打开新的窗口
Logo

前往低代码交流专区

更多推荐