From 90b09ba3eb4d2990491e8eae37bb7fde6649e139 Mon Sep 17 00:00:00 2001 From: Bentley O'Kane-Chase Date: Tue, 17 Sep 2024 19:04:35 +1000 Subject: [PATCH] Simplify Co-authored-by: xxllxhdj <12881488+xxllxhdj@users.noreply.github.com> --- packages/vue-router/src/locationHistory.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/vue-router/src/locationHistory.ts b/packages/vue-router/src/locationHistory.ts index 53859baaee2..9e12afd799a 100644 --- a/packages/vue-router/src/locationHistory.ts +++ b/packages/vue-router/src/locationHistory.ts @@ -243,9 +243,6 @@ export const createLocationHistory = () => { const ri = locationHistory[i]; if (ri) { if (ri.pathname === routeInfo.pushedByRoute) { - if (delta >= -1) { - return ri; - } return locationHistory[i + 1 + delta] } }