From 9d2826c7bc66ec4536940ba0a6400f4803ac74f3 Mon Sep 17 00:00:00 2001 From: Jihoon Yi <11155414+baram204@users.noreply.github.com> Date: Fri, 5 Apr 2019 18:39:52 +0900 Subject: [PATCH] fix: decode $route.hash using decodeURI (#213), closes #212 --- src/views/Home.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 51dbc8f8..a175d4d2 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -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) {