mirror of
https://forgejo.merr.is/annika/isl-vue3.git
synced 2025-12-13 07:14:25 -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) {
|
if (conf === null) {
|
||||||
throw new Error('config was null')
|
throw new Error('config was null')
|
||||||
}
|
}
|
||||||
|
const app = createApp(App)
|
||||||
|
|
||||||
|
app.provide(apiBaseURL, conf.apiBaseURL)
|
||||||
|
|
||||||
authentikAuth.startup().then((ok: boolean) => {
|
authentikAuth.startup().then((ok: boolean) => {
|
||||||
if (ok) {
|
if (ok) {
|
||||||
const app = createApp(App)
|
app.provide(oidc, authentikAuth)
|
||||||
|
|
||||||
const pinia = createPinia()
|
const pinia = createPinia()
|
||||||
|
|
||||||
app.use(router)
|
app.use(router)
|
||||||
app.use(vuetify)
|
app.use(vuetify)
|
||||||
app.use(pinia)
|
app.use(pinia)
|
||||||
|
|
||||||
app.provide(oidc, authentikAuth)
|
|
||||||
|
|
||||||
app.provide(apiBaseURL, conf.apiBaseURL)
|
|
||||||
|
|
||||||
app.mount('#app')
|
app.mount('#app')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue