Skip to content

Commit de0d97d

Browse files
dolymoodyyx990803
authored andcommitted
location.replace and assign order (#1043)
Should called location.replace when replace is true
1 parent cb3fb62 commit de0d97d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/history/html5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function pushState (url: string, replace?: boolean) {
129129
}
130130
saveScrollPosition(_key)
131131
} catch (e) {
132-
window.location[replace ? 'assign' : 'replace'](url)
132+
window.location[replace ? 'replace' : 'assign'](url)
133133
}
134134
}
135135

0 commit comments

Comments
 (0)