浏览代码

fix: add missing decodeURIComponent while page load (#4244)

Mostafa 3 年之前
父节点
当前提交
9f19543488
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      client/themes/default/components/page.vue

+ 2 - 2
client/themes/default/components/page.vue

@@ -564,11 +564,11 @@ export default {
     if (window.location.hash && window.location.hash.length > 1) {
       if (document.readyState === 'complete') {
         this.$nextTick(() => {
-          this.$vuetify.goTo(window.location.hash, this.scrollOpts)
+          this.$vuetify.goTo(decodeURIComponent(window.location.hash), this.scrollOpts)
         })
       } else {
         window.addEventListener('load', () => {
-          this.$vuetify.goTo(window.location.hash, this.scrollOpts)
+          this.$vuetify.goTo(decodeURIComponent(window.location.hash), this.scrollOpts)
         })
       }
     }