mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🐛 修复特定情况下首页卡池异常
This commit is contained in:
@@ -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] !== "已结束",
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user