mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🐛 修复侧边栏角色/武器图鉴跳转异常
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @file router/modules/wiki.ts
|
* @file router/modules/wiki.ts
|
||||||
* @description wiki 路由模块
|
* @description wiki 路由模块
|
||||||
* @since Beta v0.5.3
|
* @since Beta v0.6.7
|
||||||
*/
|
*/
|
||||||
import type { RouteRecordRaw } from "vue-router";
|
import type { RouteRecordRaw } from "vue-router";
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ const wikiRoutes = (<const>[
|
|||||||
component: async () => await import("@/pages/WIKI/Abyss.vue"),
|
component: async () => await import("@/pages/WIKI/Abyss.vue"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/wiki/character/:id",
|
path: "/wiki/character/:id?",
|
||||||
name: "角色图鉴",
|
name: "角色图鉴",
|
||||||
component: async () => await import("@/pages/WIKI/Character.vue"),
|
component: async () => await import("@/pages/WIKI/Character.vue"),
|
||||||
},
|
},
|
||||||
@@ -27,7 +27,7 @@ const wikiRoutes = (<const>[
|
|||||||
component: async () => await import("@/pages/WIKI/Material.vue"),
|
component: async () => await import("@/pages/WIKI/Material.vue"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/wiki/weapon/:id",
|
path: "/wiki/weapon/:id?",
|
||||||
name: "武器图鉴",
|
name: "武器图鉴",
|
||||||
component: async () => await import("@/pages/WIKI/Weapon.vue"),
|
component: async () => await import("@/pages/WIKI/Weapon.vue"),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user