From f2c5304643ca3f69076ad9f8d0766da0ced297b4 Mon Sep 17 00:00:00 2001 From: youhavetrouble Date: Sat, 16 Sep 2023 15:26:36 +0200 Subject: [PATCH] don't load paths dynamically to allow offline play --- src/router/index.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index c00808c..09b22eb 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,28 +1,33 @@ import {createRouter, createWebHashHistory} from 'vue-router' +import HomeView from '@/views/HomeView.vue'; +import QuestView from "@/views/QuestView.vue"; +import AdventurerView from "@/views/AdventurerView.vue"; +import TechnicalView from "@/views/TechnicalView.vue"; + const router = createRouter({ history: createWebHashHistory(import.meta.env.BASE_URL), routes: [ { path: '/', name: 'guild', - component: () => import('@/views/HomeView.vue') + component: HomeView, }, { path: '/quests', name: 'quests', - component: () => import('@/views/QuestView.vue') + component: QuestView, }, { path: '/adventurers', name: 'adventurers', - component: () => import('@/views/AdventurerView.vue') + component: AdventurerView, }, { path: '/technical', name: 'technical', - component: () => import('@/views/TechnicalView.vue') - } + component: TechnicalView, + }, ] })