From bcf3c2dab0d877902eb3451fb73c1a049a1f5d55 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Tue, 11 Jan 2022 22:23:35 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/Reader.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/client/components/Reader/Reader.vue b/client/components/Reader/Reader.vue index e964f730..e6ea41cc 100644 --- a/client/components/Reader/Reader.vue +++ b/client/components/Reader/Reader.vue @@ -585,10 +585,19 @@ class Reader { //сохранение в serverStorage if (value) { await utils.sleep(500); + + let timer = setTimeout(() => { + if (!this.offlineModeActive) + this.$root.notify.error('Таймаут соединения'); + }, 10000); + try { await this.$refs.serverStorage.saveRecent(value); } catch (e) { - this.$root.notify.error(e.message); + if (!this.offlineModeActive) + this.$root.notify.error(e.message); + } finally { + clearTimeout(timer); } } }