mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-11 09:08:14 +08:00
🐛 修复特定情况下首页卡池异常
This commit is contained in:
@@ -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;
|
||||
@@ -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] !== "未开始",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @file router/modules/wiki.ts
|
||||
* @description wiki 路由模块
|
||||
* @since Beta v0.4.1
|
||||
* @since Beta v0.4.6
|
||||
*/
|
||||
|
||||
const wikiRoutes = [
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user