From 959c5eaa5960a3857497b3b6d598d1065aa2c974 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Thu, 30 May 2019 14:54:55 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20GET-=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80?= =?UTF-8?q?=20=D0=B2=D0=B8=D0=B4=D0=B0=20"reader=3F=5F=5Frefresh=3D1&url?= =?UTF-8?q?=3D..."=20=D0=B4=D0=BB=D1=8F=20=D0=BF=D1=80=D0=B8=D0=BD=D1=83?= =?UTF-8?q?=D0=B4=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B6=D0=B0=D0=B5=D0=BC=D0=BE?= =?UTF-8?q?=D0=B3=D0=BE=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/Reader.vue | 11 ++++++++--- client/components/Reader/versionHistory.js | 5 +++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/client/components/Reader/Reader.vue b/client/components/Reader/Reader.vue index 29b1f487..28d4eee5 100644 --- a/client/components/Reader/Reader.vue +++ b/client/components/Reader/Reader.vue @@ -79,7 +79,7 @@ title="Что нового:" :visible.sync="whatsNewVisible" width="60%"> -
+
Посмотреть историю версий @@ -242,7 +242,7 @@ class Reader extends Vue { if (this.$root.rootRoute == '/reader') { if (this.routeParamUrl) { - await this.loadBook({url: this.routeParamUrl, bookPos: this.routeParamPos}); + await this.loadBook({url: this.routeParamUrl, bookPos: this.routeParamPos, force: this.routeParamRefresh}); } else { this.loaderActive = true; } @@ -352,6 +352,11 @@ class Reader extends Vue { return decodeURIComponent(result); } + get routeParamRefresh() { + const q = this.$route.query; + return !!q['__refresh']; + } + bookPosChanged(event) { if (event.bookPosSeen !== undefined) this.bookPosSeen = event.bookPosSeen; @@ -1088,4 +1093,4 @@ i { text-decoration: underline; cursor: pointer; } - \ No newline at end of file + diff --git a/client/components/Reader/versionHistory.js b/client/components/Reader/versionHistory.js index 98bae321..5fd42858 100644 --- a/client/components/Reader/versionHistory.js +++ b/client/components/Reader/versionHistory.js @@ -1,15 +1,16 @@ export const versionHistory = [ { showUntil: '2019-06-05', - header: '0.6.7 (2019-)', + header: '0.6.7 (2019-1)', content: ` `