Правка багов
This commit is contained in:
@@ -251,6 +251,7 @@ class RecentBooksPage extends Vue {
|
|||||||
}
|
}
|
||||||
if (this.tableData.length > result.length)
|
if (this.tableData.length > result.length)
|
||||||
this.tableData.splice(result.length);*/
|
this.tableData.splice(result.length);*/
|
||||||
|
|
||||||
this.tableData = result;
|
this.tableData = result;
|
||||||
this.updating = false;
|
this.updating = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -440,6 +440,12 @@ class BookManager {
|
|||||||
|
|
||||||
Object.assign(mergedRecent, value);
|
Object.assign(mergedRecent, value);
|
||||||
|
|
||||||
|
//подстраховка
|
||||||
|
for (let i of Object.keys(mergedRecent)) {
|
||||||
|
if (!mergedRecent[i].key || mergedRecent[i].key !== i)
|
||||||
|
delete mergedRecent[i];
|
||||||
|
}
|
||||||
|
|
||||||
//"ленивое" обновление хранилища
|
//"ленивое" обновление хранилища
|
||||||
(async() => {
|
(async() => {
|
||||||
for (const rec of Object.values(mergedRecent)) {
|
for (const rec of Object.values(mergedRecent)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user