Переглянути джерело

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

Book Pauk 6 роки тому
батько
коміт
9c2a6da04c
1 змінених файлів з 11 додано та 7 видалено
  1. 11 7
      client/components/Reader/TextPage/TextPage.vue

+ 11 - 7
client/components/Reader/TextPage/TextPage.vue

@@ -54,6 +54,8 @@ class TextPage extends Vue {
                     '-',
                     '-',
                     this.fb2.bookTitle
                     this.fb2.bookTitle
                 ]).join(' '));
                 ]).join(' '));
+
+                this.drawPage();
             })();
             })();
         }
         }
     }
     }
@@ -62,9 +64,17 @@ class TextPage extends Vue {
         return this.$store.getters['reader/lastOpenedBook'];
         return this.$store.getters['reader/lastOpenedBook'];
     }
     }
 
 
-    showPage() {
+    drawPage() {
+        const last = this.lastOpenedBook;
+        if (!last)
+            return;
+
+        //пустой канвас
+
         if (!this.book)
         if (!this.book)
             return;
             return;
+
+
     }
     }
 
 
     keyHook(event) {
     keyHook(event) {
@@ -78,10 +88,4 @@ class TextPage extends Vue {
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
 }
 }
-
-p {
-    margin: 0;
-    padding: 0;
-    text-indent: 3%;
-}
 </style>
 </style>