|
@ -225,7 +225,7 @@ export default class AccountViewView extends Vue { |
|
|
); |
|
|
); |
|
|
try { |
|
|
try { |
|
|
await db.open(); |
|
|
await db.open(); |
|
|
const num_accounts = await db._allTables.accounts.count(); |
|
|
const num_accounts = await db.accounts.count(); |
|
|
if (num_accounts === 0) { |
|
|
if (num_accounts === 0) { |
|
|
console.log("..."); |
|
|
console.log("..."); |
|
|
await db._allTables.accounts.add({ |
|
|
await db._allTables.accounts.add({ |
|
@ -235,7 +235,7 @@ export default class AccountViewView extends Vue { |
|
|
dateCreated: new Date().getTime(), |
|
|
dateCreated: new Date().getTime(), |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
const accounts = await db._allTables.accounts.toArray(); |
|
|
const accounts = await db.accounts.toArray(); |
|
|
console.log(accounts[0]); |
|
|
console.log(accounts[0]); |
|
|
const identity = JSON.parse(accounts[0].identity); |
|
|
const identity = JSON.parse(accounts[0].identity); |
|
|
|
|
|
|
|
@ -244,8 +244,9 @@ export default class AccountViewView extends Vue { |
|
|
|
|
|
|
|
|
//appStore.dispatch(appSlice.actions.addLog({log: false, msg: "... created new ID..."})) |
|
|
//appStore.dispatch(appSlice.actions.addLog({log: false, msg: "... created new ID..."})) |
|
|
//appStore.dispatch(appSlice.actions.addLog({log: false, msg: "... stored new ID..."})) |
|
|
//appStore.dispatch(appSlice.actions.addLog({log: false, msg: "... stored new ID..."})) |
|
|
} catch { |
|
|
} catch (err) { |
|
|
console.log("Error!"); |
|
|
console.log("Error!"); |
|
|
|
|
|
console.log(err); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|