<template>
  <view class="tab-page">
    <ComprehensiveProfile v-if="isComprehensive" ref="contentRef" />
    <IceProfile v-else ref="contentRef" />
  </view>
</template>

<script setup>
import { ref } from 'vue'
import { onShow } from '@dcloudio/uni-app'
import { getStoredVenue } from '@/utils/venue'
import ComprehensiveProfile from '@/pages/comprehensive/profile/index.vue'
import IceProfile from '@/pages/ice/profile/index.vue'

const isComprehensive = getStoredVenue() === 'comprehensive'
const contentRef = ref()

onShow(() => {
  contentRef.value?.onPageShow?.()
})
</script>

<style lang="scss" scoped>
.tab-page {
  min-height: 100vh;
}
</style>
