Vue 跳转路由并在新窗口弹出

时间:2020-04-09 16:14:11   收藏:0   阅读:559

Vue 跳转路由并在新窗口弹出

methods: {
      beforeInquiry () {
        const { href } = this.$router.resolve({
          name:‘consult‘
        });
        window.open(href, ‘_blank‘);
      },
}

 

原文:https://www.cnblogs.com/rabbit-lin0903/p/12667311.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!