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

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 oldBook = this.mostRecentBookReactive;
const newBook = bookManager.mostRecentBook(); const newBook = bookManager.mostRecentBook();
console.log(oldBook.bookPos, newBook.bookPos);
if (oldBook && newBook) { if (oldBook && newBook) {
if (oldBook.key != newBook.key) { if (oldBook.key != newBook.key) {
this.loadingBook = true; this.loadingBook = true;

View File

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