Skip to content

Commit

Permalink
fix: decode $route.hash using decodeURI (#213), closes #212
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdoyaji authored and egoist committed Apr 5, 2019
1 parent 4753447 commit 9d2826c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default {
},
jumpToHash() {
const {hash} = this.$route
const hash = decodeURI(this.$route.hash)
if (hash) {
const el = document.querySelector(hash)
if (el) {
Expand Down

0 comments on commit 9d2826c

Please sign in to comment.