浏览代码

Поправлен баг

Book Pauk 2 年之前
父节点
当前提交
8c7b86c458
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/components/Reader/Reader.vue

+ 1 - 1
client/components/Reader/Reader.vue

@@ -721,7 +721,7 @@ class Reader {
             return;
             return;
         const recent = this.mostRecentBook();
         const recent = this.mostRecentBook();
         const pos = (recent && recent.bookPos && this.allowUrlParamBookPos ? `__p=${recent.bookPos}&` : '');
         const pos = (recent && recent.bookPos && this.allowUrlParamBookPos ? `__p=${recent.bookPos}&` : '');
-        const url = (recent ? `url=${recent.url}` : '');
+        const url = (recent ? `url=${encodeURIComponent(recent.url)}` : '');
         if (isNewRoute)
         if (isNewRoute)
             this.$router.push(`/reader?${pos}${url}`).catch(() => {});
             this.$router.push(`/reader?${pos}${url}`).catch(() => {});
         else
         else