mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
/**
|
|
* @file router/modules/main.ts
|
|
* @description 主路由模块
|
|
* @since Beta v0.4.5
|
|
*/
|
|
|
|
const mainRoutes = [
|
|
{
|
|
path: "/",
|
|
name: "首页",
|
|
component: async () => await import("../../pages/common/Home.vue"),
|
|
},
|
|
{
|
|
path: "/announcements",
|
|
name: "公告",
|
|
component: async () => await import("../../pages/common/Announcements.vue"),
|
|
},
|
|
{
|
|
path: "/news/:gid/:type?",
|
|
name: "咨讯",
|
|
component: async () => await import("../../pages/common/News.vue"),
|
|
},
|
|
{
|
|
path: "/posts",
|
|
name: "酒馆",
|
|
component: async () => await import("../../pages/common/Posts.vue"),
|
|
},
|
|
{
|
|
path: "/achievements/:app?",
|
|
name: "成就",
|
|
component: async () => await import("../../pages/common/Achievements.vue"),
|
|
},
|
|
{
|
|
path: "/collection",
|
|
name: "收藏",
|
|
component: async () => await import("../../pages/common/PostCollect.vue"),
|
|
},
|
|
{
|
|
path: "/test",
|
|
name: "测试页",
|
|
component: async () => await import("../../pages/common/Test.vue"),
|
|
},
|
|
{
|
|
path: "/config",
|
|
name: "设置",
|
|
component: async () => await import("../../pages/common/Config.vue"),
|
|
},
|
|
];
|
|
|
|
export default mainRoutes;
|