Skip to content

Commit 1bc23f1

Browse files
authored
refactor: missing renaming (vuejs#3204)
1 parent 4c727f9 commit 1bc23f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/history/abstract.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class AbstractHistory extends History {
5151
this.updateRoute(route)
5252
},
5353
err => {
54-
if (isRouterError(err, NavigationFailureType.NAVIGATION_DUPLICATED)) {
54+
if (isRouterError(err, NavigationFailureType.duplicated)) {
5555
this.index = targetIndex
5656
}
5757
}

src/history/base.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class History {
114114
// When the user navigates through history through back/forward buttons
115115
// we do not want to throw the error. We only throw it if directly calling
116116
// push/replace. That's why it's not included in isError
117-
if (!isRouterError(err, NavigationFailureType.NAVIGATION_DUPLICATED) && isError(err)) {
117+
if (!isRouterError(err, NavigationFailureType.duplicated) && isError(err)) {
118118
if (this.errorCbs.length) {
119119
this.errorCbs.forEach(cb => {
120120
cb(err)

0 commit comments

Comments
 (0)