We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fbf894 commit 59cee10Copy full SHA for 59cee10
src/history/hash.js
@@ -32,12 +32,6 @@ export class HashHistory extends History {
32
}
33
34
35
- ensureURL () {
36
- if (getHash() !== this.current.fullPath) {
37
- replaceHash(this.current.fullPath)
38
- }
39
40
-
41
onHashChange () {
42
if (!ensureSlash()) {
43
return
@@ -62,6 +56,12 @@ export class HashHistory extends History {
62
56
go (n: number) {
63
57
window.history.go(n)
64
58
59
+
60
+ ensureURL () {
61
+ if (getHash() !== this.current.fullPath) {
+ replaceHash(this.current.fullPath)
+ }
65
66
67
function ensureSlash (): boolean {
0 commit comments