<template>
  <el-tabs v-model="tabIndex">
    <el-tab-pane label="精选题" :name="1" v-if="checkPermi(['xj-applet:vip-data:jx'])">
      <SimpleData v-if="tabIndex == 1" />
    </el-tab-pane>
    <el-tab-pane label="密卷" :name="2" v-if="checkPermi(['xj-applet:vip-data:mj'])">
      <SecretData v-if="tabIndex == 2" />
    </el-tab-pane>
  </el-tabs>
</template>

<script setup name="VipData">
import { checkPermi } from '@/utils/permission'
import SimpleData from './conponents/SimpleData.vue'
import SecretData from './conponents/SecretData.vue'

const tabIndex = ref(1)
</script>

<style lang="scss" scoped></style>
