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