Skip to content

Commit

Permalink
🐛 修复特定情况下首页卡池异常
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Apr 23, 2024
1 parent 8917deb commit 0b8fa6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 2 additions & 4 deletions src/components/home/t-pool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ onMounted(async () => {
});
if (poolCards.value.length > 2) {
poolSelect.value = poolCards.value.filter(
(pool) =>
poolTimeGet.value[pool.postId] !== "未开始" && poolTimeGet.value[pool.postId] !== "已结束",
(pool) => poolTimeGet.value[pool.postId] !== "未开始",
);
hasNew.value =
poolCards.value.filter((pool) => poolTimeGet.value[pool.postId] === "未开始").length > 0;
Expand Down Expand Up @@ -222,8 +221,7 @@ async function switchPool(): Promise<void> {
);
} else {
poolSelect.value = poolCards.value.filter(
(pool) =>
poolTimeGet.value[pool.postId] !== "未开始" && poolTimeGet.value[pool.postId] !== "已结束",
(pool) => poolTimeGet.value[pool.postId] !== "未开始",
);
}
}
Expand Down
7 changes: 1 addition & 6 deletions src/router/modules/wiki.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file router/modules/wiki.ts
* @description wiki 路由模块
* @since Beta v0.4.1
* @since Beta v0.4.6
*/

const wikiRoutes = [
Expand Down Expand Up @@ -35,11 +35,6 @@ const wikiRoutes = [
name: "武器图鉴",
component: async () => await import("../../pages/WIKI/Weapon.vue"),
},
{
path: "/wiki/detail/GCG/:id",
name: "卡牌详情",
component: async () => await import("../../views/tw-gcg.vue"),
},
];

export default wikiRoutes;

0 comments on commit 0b8fa6d

Please sign in to comment.