This commit is contained in:
2026-08-04 17:57:01 +08:00
parent 768fd4a3a9
commit f77034edd7
641 changed files with 26137 additions and 0 deletions
+71
View File
@@ -0,0 +1,71 @@
import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router'
const routes: RouteRecordRaw[] = [
// {
// path: '/:pathMatch(.*)',
// redirect: '/',
// },
{
path: '/',
name: 'home',
component: () => import('@/pages/Home/Index.vue'),
},
{
path: '/dnfhelper',
name: 'dnfhelper',
component: () => import('@/pages/Dnfhelper/index.vue'),
},
{
path: '/ui-preview',
name: 'ui-preview',
component: () => import('@/pages/UiPreview/Index.vue'),
},
{
path: '/components',
name: 'component-catalog',
meta: { disableAppZoom: true },
component: () => import('@/pages/ComponentCatalog/Index.vue'),
},
{
path: '/character/:alter',
redirect: (to) => {
return { path: `/character/equipment/${to.params.alter}`, query: to.query }
},
props: true,
name: 'character',
component: () => import('@/pages/Character/Index.vue'),
children: [
{
path: '/character/equipment/:alter',
name: 'equipment',
props: true,
component: () => import('@/pages/Character/EquipmentDictionary/Index.vue'),
},
// {
// path: '/character/equipment/:alter',
// name: 'equipment',
// props: true,
// component: (() => import('@/pages/Character/Equipment/Index.vue')),
// },{
{
path: '/character/skill/:alter',
name: 'skill',
props: true,
component: () => import('@/pages/Character/Skill/index.vue'),
},
{
path: '/character/forge/:alter',
name: 'forge',
props: true,
component: () => import('@/pages/Character/Forge/index.vue'),
},
],
},
]
const router = createRouter({
// routes,
routes,
history: createWebHistory(import.meta.env.BASE_URL),
})
export default router