|
@@ -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 })
|
|
|
}
|
|
|
|
|
|
|