From 05e969fbc4a684aa377863d403d605dff7084f18 Mon Sep 17 00:00:00 2001 From: Matthew Aaron Raymer Date: Sat, 17 Dec 2022 18:28:53 +0800 Subject: [PATCH] Some small cleanup. Tried Plugin and have abandoned. --- src/router/index.ts | 2 +- src/views/AccountViewView.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 56ee53e1..e1af138c 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -115,7 +115,7 @@ router.beforeEach(async (to) => { const isPublic = publicPages.includes(to.path); const appStore = useAppStore(); let return_path = "/start"; - console.log(isPublic); + if (isPublic) { switch (appStore.condition) { case "uninitialized": diff --git a/src/views/AccountViewView.vue b/src/views/AccountViewView.vue index ccfcd1c5..076352b2 100644 --- a/src/views/AccountViewView.vue +++ b/src/views/AccountViewView.vue @@ -228,7 +228,7 @@ export default class AccountViewView extends Vue { const num_accounts = await db.accounts.count(); if (num_accounts === 0) { console.log("..."); - await db._allTables.accounts.add({ + await db.accounts.add({ publicKey: newId.keys[0].publicKeyHex, mnemonic: this.mnemonic, identity: JSON.stringify(newId),