Skip to content

Commit 0c6f5ce

Browse files
committed
fix(appstore): properly load async router components
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 36e5f94 commit 0c6f5ce

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

apps/appstore/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import 'vite/modulepreload-polyfill'
1212

1313
const pinia = createPinia()
1414
const app = createApp(AppstoreApp)
15+
app.config.idPrefix = 'appstore'
1516
app.use(pinia)
1617
app.use(router)
1718
app.mount('#content')

apps/appstore/src/router/routes.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import { defineAsyncComponent } from 'vue'
1111
const appstoreEnabled = loadState<boolean>('appstore', 'appstoreEnabled', true)
1212

1313
// Dynamic loading
14-
const AppstoreDiscover = defineAsyncComponent(() => import('../views/AppstoreDiscover.vue'))
15-
const AppstoreManage = defineAsyncComponent(() => import('../views/AppstoreManage.vue'))
16-
const AppstoreBundles = defineAsyncComponent(() => import('../views/AppstoreBundles.vue'))
14+
const AppstoreDiscover = () => import('../views/AppstoreDiscover.vue')
15+
const AppstoreManage = () => import('../views/AppstoreManage.vue')
16+
const AppstoreBundles = () => import('../views/AppstoreBundles.vue')
1717

1818
const routes: RouteRecordRaw[] = [
1919
{

0 commit comments

Comments
 (0)