diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index aae97bb8..6c036660 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -5,6 +5,7 @@ import { clearLocalStorage } from '@/utils/storage-utils.js' import { useResultStore } from '@/stores/result.js' import { useStepsStore } from '@/stores/steps.js' +const HomePage = () => import('@/views/HomePage.vue') const StartPage = () => import('@/views/StartPage.vue') const Instructions = () => import('@/views/Instructions.vue') const Result = () => import('@/views/Result.vue') @@ -22,6 +23,15 @@ const ExtractMag = () => import('@/views/GuideFactice/ExtractMag.vue') const SelectAmmo = () => import('@/views/GuideFactice/SelectAmmo.vue') const routes = [ + { + path: '/', + name: 'HomePage', + component: HomePage, + meta: { + displayHeader: true, + }, + beforeEnter: clearLocalStorage, + }, { path: '/accueil', name: 'StartPage', diff --git a/frontend/src/views/HomePage.vue b/frontend/src/views/HomePage.vue index 5fd332f6..cc4ddc5e 100644 --- a/frontend/src/views/HomePage.vue +++ b/frontend/src/views/HomePage.vue @@ -21,7 +21,7 @@