feat(sidebar): 支持各种游戏咨讯获取

Signed-off-by: BTMuli <BT-Muli@outlook.com>
This commit is contained in:
BTMuli
2023-04-05 12:20:40 +08:00
parent f8a2343d28
commit 1fafbd4612
8 changed files with 173 additions and 90 deletions

View File

@@ -2,13 +2,12 @@
* @file router modules main.ts
* @description 主路由模块
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha v0.1.1
* @since Alpha v0.1.2
*/
// 信息展示
import Announcements from "../../pages/Announcements.vue";
import Home from "../../pages/Home.vue";
import News from "../../pages/News.vue";
import GCG from "../../pages/GCG.vue";
// 数据交互
import Achievements from "../../pages/Achievements.vue";
@@ -45,11 +44,6 @@ const mainRoutes = [
path: "/home",
redirect: "/",
},
{
path: "/news",
name: "咨讯",
component: News,
},
];
export default mainRoutes;

View File

@@ -2,18 +2,35 @@
* @file router modules sub.ts
* @description 子路由模块,用于二级窗口
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha v0.1.1
* @since Alpha v0.1.2
*/
// 游戏内公告
import TAnno from "../../views/t-anno.vue";
import TAnnoJson from "../../views/t-anno-json.vue";
// 咨讯
import TNews from "../../views/t-news.vue";
// 帖子相关
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";
import TAnnoJson from "../../views/t-anno-json.vue";
const subRoutes = [
{
path: "/anno_detail/:anno_id",
name: "游戏内公告",
component: TAnno,
},
{
path: "/anno_detail_json/:anno_id",
name: "游戏内公告JSON",
component: TAnnoJson,
},
{
path: "/news/:gid",
name: "咨讯",
component: TNews,
},
{
path: "/post_detail/:post_id",
name: "帖子详情",
@@ -29,16 +46,6 @@ const subRoutes = [
name: "抽奖详情",
component: TLottery,
},
{
path: "/anno_detail/:anno_id",
name: "游戏内公告",
component: TAnno,
},
{
path: "/anno_detail_json/:anno_id",
name: "游戏内公告JSON",
component: TAnnoJson,
},
];
export default subRoutes;