🌈 style(eslint): 第一次过 eslint

姑且先把能过的 ts 文件给过了,明天再过其余的 ts 文件跟 vue

Signed-off-by: BTMuli <BT-Muli@outlook.com>
(cherry picked from commit b7392bddea895b8b8cc1cad5ba0403d2dc738643)
This commit is contained in:
BTMuli
2023-04-06 02:23:02 +08:00
parent 3b28f57278
commit 6ec12bf664
52 changed files with 2103 additions and 2100 deletions

View File

@@ -2,15 +2,15 @@
* @file router index.ts
* @description 路由入口
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha
* @since Alpha v0.1.2
*/
import { createRouter, createWebHistory } from "vue-router";
import routes from "./routes";
const router = createRouter({
history: createWebHistory(),
routes: routes,
history: createWebHistory(),
routes,
});
export default router;

View File

@@ -15,35 +15,35 @@ 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: "/",
},
{
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;

View File

@@ -16,36 +16,36 @@ import TPostJson from "../../views/t-post-json.vue";
import TLottery from "../../views/t-lottery.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: "帖子详情",
component: TPost,
},
{
path: "/post_detail_json/:post_id",
name: "帖子详情JSON",
component: TPostJson,
},
{
path: "/lottery/:lottery_id",
name: "抽奖详情",
component: TLottery,
},
{
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: "帖子详情",
component: TPost,
},
{
path: "/post_detail_json/:post_id",
name: "帖子详情JSON",
component: TPostJson,
},
{
path: "/lottery/:lottery_id",
name: "抽奖详情",
component: TLottery,
},
];
export default subRoutes;