Версия 0.6.2, поправка мелкого бага

This commit is contained in:
Book Pauk
2019-03-24 12:27:43 +07:00
parent b4e8b7375f
commit 36a7b7b91a
2 changed files with 7 additions and 2 deletions

View File

@@ -75,7 +75,12 @@ class ServerStorage extends Vue {
async serverSyncEnabledChanged() {
if (this.serverSyncEnabled) {
this.prevServerStorageKey = null;
await this.serverStorageKeyChanged(true);
if (!this.serverStorageKey) {
//генерируем новый ключ
await this.generateNewServerStorageKey();
} else {
await this.serverStorageKeyChanged(true);
}
}
}