|
@@ -21,11 +21,14 @@
|
|
|
<script setup>
|
|
|
import myRecommendation from './myRecommendation.vue'
|
|
|
import myRegistration from './myRegistration.vue'
|
|
|
+import { useRoute } from 'vue-router'; const route = useRoute()
|
|
|
+import { useRouter } from 'vue-router'; const router = useRouter()
|
|
|
import { ref } from 'vue'
|
|
|
defineOptions({name: 'personal-myPublicRecruitment-index'})
|
|
|
-
|
|
|
-const tab = ref(1)
|
|
|
-const getPositionList = () => {}
|
|
|
+const tab = ref(+route.query?.tab || 1)
|
|
|
+const getPositionList = () => {
|
|
|
+ if (route.query) router.replace({ path: route.path }) // 不留记录的清除跳转带过来的参数
|
|
|
+}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
</style>
|