This commit is contained in:
2026-05-11 00:32:03 +08:00
parent 2535bec2ed
commit 10022ae048
32 changed files with 2450 additions and 203 deletions
+44 -3
View File
@@ -5,20 +5,61 @@ const router = createRouter({
routes: [
{
path: "/",
name: "home",
component: () => import("@/pages/index.vue"),
},
{
path: "/dcalc",
name: "dcalc",
component: () => import("@/pages/index.vue"),
children: [
{
path: "/dcalc/dnfhelper",
path: "",
redirect: "/dcalc/home",
},
{
path: "home",
name: "home",
component: () => import("@/pages/Dcalc/Home/Index.vue"),
},
{
path: "dnfhelper",
name: "dnfhelper",
component: () => import("@/pages/Dcalc/DnfHelper/index.vue"),
},
{
path: "character/:alter",
name: "character",
props: true,
component: () => import("@/pages/Dcalc/Character/Index.vue"),
redirect: (to) => {
return {
name: "character-equipment",
params: { alter: to.params.alter },
};
},
children: [
{
path: "equipment",
name: "character-equipment",
component: () => import("@/pages/Dcalc/Character/EquipmentDictionary/Index.vue"),
},
{
path: "skill",
name: "character-skill",
component: () => import("@/pages/Dcalc/Character/Skill/index.vue"),
},
{
path: "forge",
name: "character-forge",
component: () => import("@/pages/Dcalc/Character/Forge/index.vue"),
},
],
},
],
},
{
path: "/:pathMatch(.*)*",
redirect: "/dcalc/home",
},
],
});