Поправки

This commit is contained in:
Book Pauk
2022-08-24 22:45:45 +07:00
parent 22506a91f4
commit 2f8b4e72b8

View File

@@ -123,10 +123,7 @@
<div v-if="isExpanded(item) && item.books"> <div v-if="isExpanded(item) && item.books">
<div v-for="row in item.books.rows" :key="row.key" class="book-row column"> <div v-for="row in item.books.rows" :key="row.key" class="book-row column">
<div class="q-my-sm" @click="selectAuthor(row.title)"> <div class="q-my-sm" @click="selectAuthor(row.title)">
{{ row.title }} {{ row.title }} {{ row.src.del }}
</div>
<div>
{{ row.src }}
</div> </div>
</div> </div>
</div> </div>
@@ -231,6 +228,8 @@ class Search {
{label: '20', value: 20}, {label: '20', value: 20},
{label: '50', value: 50}, {label: '50', value: 50},
{label: '100', value: 100}, {label: '100', value: 100},
{label: '200', value: 200},
{label: '500', value: 500},
{label: '1000', value: 1000}, {label: '1000', value: 1000},
]; ];
@@ -380,7 +379,7 @@ class Search {
try { try {
const result = await this.api.getBookList(authorId); const result = await this.api.getBookList(authorId);
return result.books; return JSON.parse(result.books);
} catch (e) { } catch (e) {
this.$root.stdDialog.alert(e.message, 'Ошибка'); this.$root.stdDialog.alert(e.message, 'Ошибка');
} }