Skip to content

Commit 6b3b0e1

Browse files
committed
👽️ 调整查找逻辑
1 parent eb7e0df commit 6b3b0e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/app/t-gameNav.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ const actId = ref<string>();
3838
3939
const hasNav = computed<TGApp.BBS.Navigator.Navigator | undefined>(() => {
4040
const liveNames = ["前瞻直播", "前瞻节目", "直播兑换码"];
41-
return nav.value.find((item) => liveNames.includes(item.name));
41+
const find = nav.value.find((item) => liveNames.includes(item.name));
42+
if (find) return find;
43+
return nav.value.find((item) => item.name.includes("前瞻"));
4244
});
4345
4446
onMounted(async () => await loadNav());

0 commit comments

Comments
 (0)