From 3959c623029260d644fe503389f365f9d9c97bac Mon Sep 17 00:00:00 2001 From: John Leider Date: Sun, 10 Mar 2024 20:56:15 -0500 Subject: [PATCH] fix(javascript): swap router files --- template/javascript/base/src/router/index.js | 3 +-- template/javascript/essentials/src/router/index.js | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) 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