From f5124ad8b50ce91cd9e36666904c7f7df26256cf Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sat, 8 Feb 2020 20:24:15 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Reader/RecentBooksPage/RecentBooksPage.vue | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/client/components/Reader/RecentBooksPage/RecentBooksPage.vue b/client/components/Reader/RecentBooksPage/RecentBooksPage.vue index 84b8dddb..d44fa8bd 100644 --- a/client/components/Reader/RecentBooksPage/RecentBooksPage.vue +++ b/client/components/Reader/RecentBooksPage/RecentBooksPage.vue @@ -158,7 +158,7 @@ class RecentBooksPage extends Vue { this.$refs.window.init(); this.$nextTick(() => { - this.$refs.input.focus(); + //this.$refs.input.focus();//плохо на планшетах }); (async() => {//подгрузка списка if (this.initing) @@ -271,15 +271,6 @@ class RecentBooksPage extends Vue { item.desc.author.toLowerCase().includes(search.toLowerCase()) }); - /*for (let i = 0; i < result.length; i++) { - if (!_.isEqual(this.tableData[i], result[i])) { - this.$set(this.tableData, i, result[i]); - await utils.sleep(10); - } - } - if (this.tableData.length > result.length) - this.tableData.splice(result.length);*/ - this.tableData = result; this.updating = false; } @@ -310,7 +301,7 @@ class RecentBooksPage extends Vue { async handleDel(key) { await bookManager.delRecentBook({key}); - this.updateTableData(); + //this.updateTableData();//обновление уже происходит Reader.bookManagerEvent if (!bookManager.mostRecentBook()) this.close();