don't load paths dynamically to allow offline play

This commit is contained in:
2023-09-16 15:26:36 +02:00
parent b6aefde9da
commit f2c5304643
+10 -5
View File
@@ -1,28 +1,33 @@
import {createRouter, createWebHashHistory} from 'vue-router' 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({ const router = createRouter({
history: createWebHashHistory(import.meta.env.BASE_URL), history: createWebHashHistory(import.meta.env.BASE_URL),
routes: [ routes: [
{ {
path: '/', path: '/',
name: 'guild', name: 'guild',
component: () => import('@/views/HomeView.vue') component: HomeView,
}, },
{ {
path: '/quests', path: '/quests',
name: 'quests', name: 'quests',
component: () => import('@/views/QuestView.vue') component: QuestView,
}, },
{ {
path: '/adventurers', path: '/adventurers',
name: 'adventurers', name: 'adventurers',
component: () => import('@/views/AdventurerView.vue') component: AdventurerView,
}, },
{ {
path: '/technical', path: '/technical',
name: 'technical', name: 'technical',
component: () => import('@/views/TechnicalView.vue') component: TechnicalView,
} },
] ]
}) })