Browse Source

Мелкие поправки

Book Pauk 5 years ago
parent
commit
f5124ad8b5
1 changed files with 2 additions and 11 deletions
  1. 2 11
      client/components/Reader/RecentBooksPage/RecentBooksPage.vue

+ 2 - 11
client/components/Reader/RecentBooksPage/RecentBooksPage.vue

@@ -158,7 +158,7 @@ class RecentBooksPage extends Vue {
         this.$refs.window.init();
         this.$refs.window.init();
 
 
         this.$nextTick(() => {
         this.$nextTick(() => {
-            this.$refs.input.focus();
+            //this.$refs.input.focus();//плохо на планшетах
         });
         });
         (async() => {//подгрузка списка
         (async() => {//подгрузка списка
             if (this.initing)
             if (this.initing)
@@ -271,15 +271,6 @@ class RecentBooksPage extends Vue {
                 item.desc.author.toLowerCase().includes(search.toLowerCase())
                 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.tableData = result;
         this.updating = false;
         this.updating = false;
     }
     }
@@ -310,7 +301,7 @@ class RecentBooksPage extends Vue {
 
 
     async handleDel(key) {
     async handleDel(key) {
         await bookManager.delRecentBook({key});
         await bookManager.delRecentBook({key});
-        this.updateTableData();
+        //this.updateTableData();//обновление уже происходит Reader.bookManagerEvent
 
 
         if (!bookManager.mostRecentBook())
         if (!bookManager.mostRecentBook())
             this.close();
             this.close();