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) }