lifanagju_citu před 3 měsíci
rodič
revize
cb1b056d50

+ 4 - 1
src/views/recruit/personal/jobFair/enterprise/index.vue

@@ -98,7 +98,10 @@ const savedTab = new URLSearchParams(window.location.search).get('key')
 tab.value = savedTab ? (savedTab === 'briefIntroduction' ? 1 : 2) : 2
 
 const handleTabClick = () => {
-  router.push(`${route.path}?key=${tab.value === 1 ? 'briefIntroduction' : 'recruitmentPositions'}`)
+  // router.push(`${route.path}?key=${tab.value === 1 ? 'briefIntroduction' : 'recruitmentPositions'}`)
+  const key = tab.value === 1 ? 'briefIntroduction' : 'recruitmentPositions'
+  const query = { ...route?.query, key }
+  router.push({ path, query })
 }