From d07f4bf5f22daad28c80b305b9b9466c9f646c11 Mon Sep 17 00:00:00 2001 From: git Date: Sat, 21 Oct 2017 17:59:42 +0900 Subject: [PATCH] Auto scrollTo hash add decode --- docs/views/Document.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/views/Document.vue b/docs/views/Document.vue index 3ff0f7e..f428495 100644 --- a/docs/views/Document.vue +++ b/docs/views/Document.vue @@ -59,7 +59,7 @@ export default { mounted() { // auto scrollTo hash if (this.$route.hash) { - let el = document.querySelector(this.$route.hash) + let el = document.querySelector(decodeURIComponent(this.$route.hash)) if (el) { window.scrollTo(0, el.offsetTop) }