Skip to content

Commit 59cee10

Browse files
committed
tweak
1 parent 7fbf894 commit 59cee10

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/history/hash.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ export class HashHistory extends History {
3232
}
3333
}
3434

35-
ensureURL () {
36-
if (getHash() !== this.current.fullPath) {
37-
replaceHash(this.current.fullPath)
38-
}
39-
}
40-
4135
onHashChange () {
4236
if (!ensureSlash()) {
4337
return
@@ -62,6 +56,12 @@ export class HashHistory extends History {
6256
go (n: number) {
6357
window.history.go(n)
6458
}
59+
60+
ensureURL () {
61+
if (getHash() !== this.current.fullPath) {
62+
replaceHash(this.current.fullPath)
63+
}
64+
}
6565
}
6666

6767
function ensureSlash (): boolean {

0 commit comments

Comments
 (0)