Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
Co-authored-by: xxllxhdj <[email protected]>
  • Loading branch information
2 people authored and thetaPC committed Oct 22, 2024
1 parent f03cc5a commit 90b09ba
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/vue-router/src/locationHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}
Expand Down

0 comments on commit 90b09ba

Please sign in to comment.