minimal working
This commit is contained in:
1 parent
2093433b96
commit
13ea8c80da
11 files changed
+727
-337
No files matched your search
+3
-5
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user