feat(announcements): 支持游戏内公告查看

This commit is contained in:
BTMuli
2023-04-01 23:49:59 +08:00
parent 301594f2d4
commit 79366837bd
7 changed files with 269 additions and 5 deletions

View File

@@ -1,3 +1,10 @@
/**
* @file router index.ts
* @description 路由入口
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha
*/
import { createRouter, createWebHistory } from "vue-router";
import routes from "./routes";

View File

@@ -2,10 +2,11 @@
* @file router modules main.ts
* @description 主路由模块
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha
* @since Alpha v0.1.1
*/
// 信息展示
import Announcements from "../../pages/Announcements.vue";
import Home from "../../pages/Home.vue";
import News from "../../pages/News.vue";
import GCG from "../../pages/GCG.vue";
@@ -25,6 +26,11 @@ const mainRoutes = [
name: "成就",
component: Achievements,
},
{
path: "/announcements",
name: "公告",
component: Announcements,
},
{
path: "/config",
name: "设置",

View File

@@ -2,13 +2,15 @@
* @file router modules sub.ts
* @description 子路由模块,用于二级窗口
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha
* @since Alpha v0.1.1
*/
// 帖子相关
import TPost from "../../views/t-post.vue";
import TPostJson from "../../views/t-post-json.vue";
// 抽奖
import TLottery from "../../views/t-lottery.vue";
// 游戏内公告
import TAnno from "../../views/t-anno.vue";
const subRoutes = [
{
@@ -26,6 +28,11 @@ const subRoutes = [
name: "抽奖详情",
component: TLottery,
},
{
path: "/anno/:anno_id",
name: "游戏内公告",
component: TAnno,
},
];
export default subRoutes;