vue项目跳转外部链接

vue跳转外部链接

// 这个方法会新打开一个页面窗口
    window.open(routeUrl, '_blank')
// 这个只能在原来页面跳转。不会新开窗口 window.location.href = routeUrl
window.location.replace(routeUrl)

 

posted @ 2022-05-16 15:45  ZJTL  阅读(1423)  评论(0编辑  收藏  举报