Files
TeyvatGuide/src/router/modules/sub.ts
2025-12-24 17:17:40 +08:00

32 lines
890 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 子路由模块,用于二级窗口
* @since Beta v0.4.5
*/
import type { RouteRecordRaw } from "vue-router";
const subRoutes = (<const>[
{
// 传入参数公告ID-anno_id服务器-region语言-lang
path: "/anno_detail/:region/:anno_id/:lang",
name: "游戏内公告",
component: async () => await import("@/views/t-anno.vue"),
},
{
path: "/anno_detail_json/:region/:anno_id/:lang",
name: "游戏内公告JSON",
component: async () => await import("@/views/t-anno-json.vue"),
},
{
path: "/post_detail/:post_id",
name: "帖子详情",
component: async () => await import("@/views/t-post.vue"),
},
{
path: "/post_detail_json/:post_id",
name: "帖子详情JSON",
component: async () => await import("@/views/t-post-json.vue"),
},
]) satisfies Array<RouteRecordRaw>;
export default subRoutes;