🐛 修复特定情况下首页卡池异常

This commit is contained in:
目棃
2024-04-24 00:37:13 +08:00
parent 8917deb5db
commit 0b8fa6d8f6
2 changed files with 3 additions and 10 deletions

View File

@@ -144,8 +144,7 @@ onMounted(async () => {
}); });
if (poolCards.value.length > 2) { if (poolCards.value.length > 2) {
poolSelect.value = poolCards.value.filter( poolSelect.value = poolCards.value.filter(
(pool) => (pool) => poolTimeGet.value[pool.postId] !== "未开始",
poolTimeGet.value[pool.postId] !== "未开始" && poolTimeGet.value[pool.postId] !== "已结束",
); );
hasNew.value = hasNew.value =
poolCards.value.filter((pool) => poolTimeGet.value[pool.postId] === "未开始").length > 0; poolCards.value.filter((pool) => poolTimeGet.value[pool.postId] === "未开始").length > 0;
@@ -222,8 +221,7 @@ async function switchPool(): Promise<void> {
); );
} else { } else {
poolSelect.value = poolCards.value.filter( poolSelect.value = poolCards.value.filter(
(pool) => (pool) => poolTimeGet.value[pool.postId] !== "未开始",
poolTimeGet.value[pool.postId] !== "未开始" && poolTimeGet.value[pool.postId] !== "已结束",
); );
} }
} }

View File

@@ -1,7 +1,7 @@
/** /**
* @file router/modules/wiki.ts * @file router/modules/wiki.ts
* @description wiki 路由模块 * @description wiki 路由模块
* @since Beta v0.4.1 * @since Beta v0.4.6
*/ */
const wikiRoutes = [ const wikiRoutes = [
@@ -35,11 +35,6 @@ const wikiRoutes = [
name: "武器图鉴", name: "武器图鉴",
component: async () => await import("../../pages/WIKI/Weapon.vue"), 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; export default wikiRoutes;