Ver código fonte

返回众聘页面,去除目标参数

lifanagju_citu 11 meses atrás
pai
commit
39cffe9554

+ 1 - 1
src/views/recruit/enterprise/positionManagement/index.vue

@@ -57,7 +57,7 @@ const query = ref({
 
 const showHire = (route.query?.hire - 0) || 0
 const tab = ref(showHire ? 4: 1)
-// if (showHire ) router.replace({ path: route.path, query: { ...route.query, used: 1 } })
+if (showHire) history.replaceState({ ...route.query, hire: 0 }, '', route.path) // 更新浏览器历史记录,不触发页面重新加载 ( 目的:去除目标参数 )
 
 const tabList = [
   { label: t('position.recruitmentInProgress'), value: 1 },