diff --git a/client/components/Reader/TextPage/TextPage.vue b/client/components/Reader/TextPage/TextPage.vue index dca8353d..8f60be2a 100644 --- a/client/components/Reader/TextPage/TextPage.vue +++ b/client/components/Reader/TextPage/TextPage.vue @@ -1,6 +1,8 @@ @@ -13,7 +15,7 @@ import bookManager from '../share/bookManager'; export default @Component({ }) class TextPage extends Vue { - parsedBook = null; + items = null; created() { this.commit = this.$store.commit; @@ -35,6 +37,13 @@ class TextPage extends Vue { } const book = await bookManager.getBook(last); this.book = book.parsed; + + let lines = []; + const len = (this.book.para.length > 50 ? 50 : this.book.para.length); + for (let i = 0; i < len; i++) { + lines.push({key: i, text: this.book.para[i].text}); + } + this.items = lines; })(); } } @@ -54,4 +63,10 @@ class TextPage extends Vue { display: flex; flex-direction: column; } + +p { + margin: 0; + padding: 0; + text-indent: 3%; +} \ No newline at end of file