mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🌈 style(eslint): 第一次过 eslint
姑且先把能过的 ts 文件给过了,明天再过其余的 ts 文件跟 vue Signed-off-by: BTMuli <BT-Muli@outlook.com> (cherry picked from commit b7392bddea895b8b8cc1cad5ba0403d2dc738643)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user