deploy: auto commit repo-root changes 2026-07-13 13:26:55

This commit is contained in:
hajimi
2026-07-13 13:26:56 +08:00
parent 8ebe30a077
commit af8941e880
6 changed files with 435 additions and 7 deletions
@@ -248,11 +248,14 @@ type MatchCenterTab = 'schedule' | 'live' | 'odds'
type OddsShowType = '' | 'live' | 'today' | 'early'
type OddsPlatformOption = { key: string; label: string }
const contentTabs: { key: MatchCenterTab; label: string }[] = [
const showStandaloneOddsTab = false
const allContentTabs: { key: MatchCenterTab; label: string }[] = [
{ key: 'schedule', label: '赛程' },
{ key: 'live', label: '直播' },
{ key: 'odds', label: '赔率' },
]
const contentTabs = allContentTabs.filter((item) => showStandaloneOddsTab || item.key !== 'odds')
const oddsShowTypeOptions: { key: OddsShowType; label: string }[] = [
{ key: '', label: '全部盘口' },
@@ -381,7 +381,9 @@ const emit = defineEmits<{
(e: 'back'): void
}>()
const tabs: { key: MainTab; label: string }[] = [
const showStandaloneOddsTab = false
const allTabs: { key: MainTab; label: string }[] = [
{ key: 'live', label: '直播' },
{ key: 'schedule', label: '比分和赛程' },
{ key: 'odds', label: '赔率' },
@@ -389,6 +391,7 @@ const tabs: { key: MainTab; label: string }[] = [
{ key: 'bracket', label: '对阵图' },
{ key: 'news', label: '新闻' }
]
const tabs = allTabs.filter((item) => showStandaloneOddsTab || item.key !== 'odds')
const oddsShowTypeOptions: { key: OddsShowType; label: string }[] = [
{ key: '', label: '全部盘口' },
@@ -1042,8 +1045,10 @@ const initViewState = async () => {
activeTab.value = 'live'
} else if (legacyTab === 'schedule') {
activeTab.value = 'schedule'
} else if (legacyTab === 'odds') {
} else if (legacyTab === 'odds' && showStandaloneOddsTab) {
activeTab.value = 'odds'
} else if (legacyTab === 'odds') {
activeTab.value = 'schedule'
} else if (legacyTab === 'rank' || legacyTab === 'standings') {
activeTab.value = 'rank'
rankingMode.value = 'standings'