| | |
| | | isNavigationFailure, |
| | | NavigationFailureType |
| | | } from '../util/errors' |
| | | import { handleScroll } from '../util/scroll' |
| | | |
| | | export class History { |
| | | router: Router |
| | |
| | | cb(err) |
| | | }) |
| | | } else { |
| | | warn(false, 'uncaught error during route navigation:') |
| | | if (process.env.NODE_ENV !== 'production') { |
| | | warn(false, 'uncaught error during route navigation:') |
| | | } |
| | | console.error(err) |
| | | } |
| | | } |
| | |
| | | route.matched[lastRouteIndex] === current.matched[lastCurrentIndex] |
| | | ) { |
| | | this.ensureURL() |
| | | if (route.hash) { |
| | | handleScroll(this.router, current, route, false) |
| | | } |
| | | return abort(createNavigationDuplicatedError(current, route)) |
| | | } |
| | | |