dev
This commit is contained in:
@@ -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",
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user