deploy: auto commit repo-root changes 2026-07-13 13:26:55
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user