index.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!-- 赏金与积分 -->
  2. <template>
  3. <div class="py-3" :class="customClass">
  4. <v-tabs v-model="tab" align-tabs="start" color="primary" bg-color="#fff" @update:model-value="getPositionList">
  5. <v-tab :value="1">{{ $t('publicRecruitment.myRecommendation') }}</v-tab>
  6. </v-tabs>
  7. <div class="mt-3">
  8. <div v-if="tab === 1">
  9. <myRecommendation></myRecommendation>
  10. </div>
  11. </div>
  12. </div>
  13. </template>
  14. <script setup>
  15. defineOptions({name: 'personal-myPublicRecruitment-index'})
  16. import { ref } from 'vue'
  17. import myRecommendation from './myRecommendation.vue'
  18. defineProps({
  19. customClass: {
  20. type: String,
  21. default: 'default-width'
  22. }
  23. })
  24. import { useRoute } from 'vue-router'; const route = useRoute()
  25. import { useRouter } from 'vue-router'; const router = useRouter()
  26. const tab = ref(+route.query?.tab || 1)
  27. const getPositionList = () => {
  28. if (route.query) router.replace({ path: route.path }) // 不留记录的清除跳转带过来的参数
  29. }
  30. </script>
  31. <style lang="scss" scoped>
  32. </style>