К предыдущему

This commit is contained in:
Book Pauk
2019-09-07 16:44:00 +07:00
parent a1f4a83e72
commit c9419d99e6
2 changed files with 2 additions and 5 deletions

View File

@@ -512,7 +512,6 @@ class Reader extends Vue {
const oldBook = this.mostRecentBookReactive;
const newBook = bookManager.mostRecentBook();
console.log(oldBook.bookPos, newBook.bookPos);
if (oldBook && newBook) {
if (oldBook.key != newBook.key) {
this.loadingBook = true;

View File

@@ -392,10 +392,10 @@ class ServerStorage extends Vue {
const bm = bookManager;
if (!bookManager.loaded) {
/*if (!bookManager.loaded) {
this.warning('Функции сохранения на сервер пока недоступны');
return;
}
}*/
//несколько замудреная инициализация oldRecent
if (!this.oldRecent) {
@@ -469,7 +469,6 @@ class ServerStorage extends Vue {
this.recentDiff = null;
await bm.setRecentRev(bm.recentRev + 1);
await bm.setRecentDiffRev(bm.recentDiffRev + 1);
console.log('saved1');
}
} else {//сохраняем только дифф
let result = {state: ''};
@@ -486,7 +485,6 @@ console.log('saved1');
} else if (result.state == 'success') {
await bm.setRecentDiffRev(bm.recentDiffRev + 1);
}
console.log('saved2');
}
} finally {
this.savingRecent = false;