首页 > 技术文章 > Vue 跳转路由并在新窗口弹出

rabbit-lin0903 2020-04-09 15:36 原文

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

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

 

推荐阅读