mirror of
https://forgejo.merr.is/annika/isl-vue3.git
synced 2025-12-11 10:56:31 -05:00
Changed Initialization Order
This commit is contained in:
parent
1ac38f584e
commit
9a064353ee
1 changed files with 6 additions and 5 deletions
11
src/main.ts
11
src/main.ts
|
|
@ -28,19 +28,20 @@ getConfig().then((conf: Config | null) => {
|
|||
if (conf === null) {
|
||||
throw new Error('config was null')
|
||||
}
|
||||
const app = createApp(App)
|
||||
|
||||
app.provide(apiBaseURL, conf.apiBaseURL)
|
||||
|
||||
authentikAuth.startup().then((ok: boolean) => {
|
||||
if (ok) {
|
||||
const app = createApp(App)
|
||||
app.provide(oidc, authentikAuth)
|
||||
|
||||
const pinia = createPinia()
|
||||
|
||||
app.use(router)
|
||||
app.use(vuetify)
|
||||
app.use(pinia)
|
||||
|
||||
app.provide(oidc, authentikAuth)
|
||||
|
||||
app.provide(apiBaseURL, conf.apiBaseURL)
|
||||
|
||||
app.mount('#app')
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue