mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-19 04:29:45 +08:00
👽️ 调整查找逻辑
This commit is contained in:
@@ -38,7 +38,9 @@ const actId = ref<string>();
|
||||
|
||||
const hasNav = computed<TGApp.BBS.Navigator.Navigator | undefined>(() => {
|
||||
const liveNames = ["前瞻直播", "前瞻节目", "直播兑换码"];
|
||||
return nav.value.find((item) => liveNames.includes(item.name));
|
||||
const find = nav.value.find((item) => liveNames.includes(item.name));
|
||||
if (find) return find;
|
||||
return nav.value.find((item) => item.name.includes("前瞻"));
|
||||
});
|
||||
|
||||
onMounted(async () => await loadNav());
|
||||
|
||||
Reference in New Issue
Block a user