美文网首页
vue中路由跳转新开页面-笔记

vue中路由跳转新开页面-笔记

作者: lx_smile | 来源:发表于2022-10-17 15:50 被阅读0次

    代码写法

     const { href } = this.$router.resolve({
         path: '相关路径'
      });
      window.open(href, '_blank');
    

    相关文章

      网友评论

          本文标题:vue中路由跳转新开页面-笔记

          本文链接:https://www.haomeiwen.com/subject/pnmjzrtx.html