mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
50 lines
861 B
TypeScript
50 lines
861 B
TypeScript
/**
|
|
* @file router modules main.ts
|
|
* @description 主路由模块
|
|
* @author BTMuli<bt-muli@outlook.com>
|
|
* @since Alpha v0.1.2
|
|
*/
|
|
|
|
// 信息展示
|
|
import Announcements from "../../pages/Announcements.vue";
|
|
import Home from "../../pages/Home.vue";
|
|
import GCG from "../../pages/GCG.vue";
|
|
// 数据交互
|
|
import Achievements from "../../pages/Achievements.vue";
|
|
// 应用配置相关
|
|
import Config from "../../pages/Config.vue";
|
|
|
|
const mainRoutes = [
|
|
{
|
|
path: "/",
|
|
name: "首页",
|
|
component: Home,
|
|
},
|
|
{
|
|
path: "/achievements",
|
|
name: "成就",
|
|
component: Achievements,
|
|
},
|
|
{
|
|
path: "/announcements",
|
|
name: "公告",
|
|
component: Announcements,
|
|
},
|
|
{
|
|
path: "/config",
|
|
name: "设置",
|
|
component: Config,
|
|
},
|
|
{
|
|
path: "/GCG",
|
|
name: "卡牌",
|
|
component: GCG,
|
|
},
|
|
{
|
|
path: "/home",
|
|
redirect: "/",
|
|
},
|
|
];
|
|
|
|
export default mainRoutes;
|