Skip to content

Commit 538ce60

Browse files
author
wanyaxing
committed
CircleCI failed fix2
1 parent 474baa1 commit 538ce60

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/history/hash.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class HashHistory extends History {
5959
location = { path: location }
6060
}
6161
if (typeof location === 'object' && !location.replace) {
62-
location.replace = 1
62+
(location: Object).replace = true
6363
}
6464
this.transitionTo(location, route => {
6565
replaceHash(route.fullPath)

src/history/html5.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class HTML5History extends History {
5656
location = { path: location }
5757
}
5858
if (typeof location === 'object' && !location.replace) {
59-
location.replace = 1
59+
(location: Object).replace = true
6060
}
6161
this.transitionTo(location, route => {
6262
replaceState(cleanPath(this.base + route.fullPath))

src/util/route.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function createRoute (
2323
meta: (record && record.meta) || {},
2424
path: location.path || '/',
2525
hash: location.hash || '',
26-
replace: location.replace || 0,
26+
replace: location.replace || false,
2727
query,
2828
params: location.params || {},
2929
fullPath: getFullPath(location, stringifyQuery),

0 commit comments

Comments
 (0)