router.push(location, onComplete?, onAbort?)
router.push(location).then(onComplete).catch(onAbort)
router.replace(location, onComplete?, onAbort?)
router.replace(location).then(onComplete).catch(onAbort)
router.go(n)
router.back()
router.forward()

动态的导航到一个新 URL。参考编程式导航

这些函数仅在安装路由插件并将其传递给 Vue 根实例后调用,如起步所示

扩展阅读