minimal working

This commit is contained in:
polv committed 2021-10-31 17:24:33 +07:00
1 parent 2093433b96
commit 13ea8c80da
11 files changed
+727 -337

No files matched your search

+3 -5
View File
@@ -129,16 +129,14 @@ import { api } from '~/assets/api'
LibraryTab,
},
async mounted() {
await this.$accessor.updateSettings()
if (!this.$accessor.isApp) {
this.$router.replace('/')
} else {
if (await api.setWanikaniApiKey()) {
this.$accessor.ADD_TAB({
component: 'Lookup',
first: true,
})
this.isReady = true
} else {
this.$router.replace('/')
}
},
})
+1 -1
View File
@@ -23,7 +23,7 @@ import { api } from '~/assets/api'
@Component<HomePage>({
async mounted() {
if (await api.isAuthorized()) {
if (await api.setWanikaniApiKey()) {
this.$router.replace('/app')
} else {
this.isReady = true