mirror of
https://github.com/YouHaveTrouble/GuildMaster.git
synced 2026-05-12 06:26:59 +00:00
don't load paths dynamically to allow offline play
This commit is contained in:
+10
-5
@@ -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,
|
||||
},
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user