diff --git a/template/javascript/base/src/router/index.js b/template/javascript/base/src/router/index.js index f207ba8..6ec866b 100644 --- a/template/javascript/base/src/router/index.js +++ b/template/javascript/base/src/router/index.js @@ -1,3 +1,4 @@ + /** * router/index.ts * @@ -6,11 +7,9 @@ // Composables import { createRouter, createWebHistory } from 'vue-router/auto' -import { setupLayouts } from 'virtual:generated-layouts' const router = createRouter({ history: createWebHistory(process.env.BASE_URL), - extendRoutes: setupLayouts, }) export default router diff --git a/template/javascript/essentials/src/router/index.js b/template/javascript/essentials/src/router/index.js index 030ad6c..f207ba8 100644 --- a/template/javascript/essentials/src/router/index.js +++ b/template/javascript/essentials/src/router/index.js @@ -6,9 +6,11 @@ // Composables import { createRouter, createWebHistory } from 'vue-router/auto' +import { setupLayouts } from 'virtual:generated-layouts' const router = createRouter({ history: createWebHistory(process.env.BASE_URL), + extendRoutes: setupLayouts, }) export default router