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

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

methods: {
      beforeInquiry () {
        const { href } = this.$router.resolve({
          name:'consult'
        });
        window.open(href, '_blank');
      },
}
原文地址:https://www.cnblogs.com/rabbit-lin0903/p/12667311.html