Skip to content

Commit

Permalink
🐞 fix: router
Browse files Browse the repository at this point in the history
  • Loading branch information
m1m1sha committed Jun 7, 2024
1 parent 56995c7 commit 3bf5c33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/router.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { setupLayouts } from 'virtual:generated-layouts'
import { createRouter, createWebHistory } from 'vue-router/auto'
import { routes } from 'vue-router/auto-routes'
import type { UseModule } from '~/types/modules'

export const install: UseModule = (app) => {
const router = createRouter({
history: createWebHistory(),
extendRoutes: routes => setupLayouts(routes),
routes: setupLayouts(routes),
})
app.use(router)
}

0 comments on commit 3bf5c33

Please sign in to comment.