fix(vue): canGoBack method now works correctly (#24188)

resolves #24109
This commit is contained in:
Liam DeBeasi
2021-11-09 09:45:12 -05:00
committed by GitHub
parent 642255e514
commit 7c43589b0a
5 changed files with 131 additions and 6 deletions

View File

@ -305,7 +305,7 @@ export const createIonRouter = (opts: IonicVueRouterOptions, router: Router) =>
const getCurrentRouteInfo = () => currentRouteInfo;
const canGoBack = (deep: number = 1) => locationHistory.canGoBack(deep);
const canGoBack = (deep: number = 1) => locationHistory.canGoBack(deep, initialHistoryPosition, currentHistoryPosition);
const navigate = (navigationOptions: ExternalNavigationOptions) => {
const { routerAnimation, routerDirection, routerLink } = navigationOptions;