@@ -120,10 +120,10 @@ export const jumpToEnterpriseDetail = async (id, isOpenWindow = false, tabKey =
// 不在优选集团中跳转企业详情
const key = tabKey ? 'recruitmentPositions' : 'briefIntroduction'
+ const url = `/recruit/personal/company/details/${id}?key=${key}`
if (isOpenWindow) {
- window.open(`/recruit/personal/company/details/${id}?key=${key}`)
+ window.open(url)
} else {
- await router.push(`/recruit/personal/company/details/${id}?key=${key}`)
- await nextTick()
+ router.push({ path: url})
}
@@ -92,7 +92,9 @@ const handleTabClick = () => {
// 返回上一页
const handleReturn = () => {
- router.history?.length ? router.go(-1) : router.push('/recruitHome')
+ if (window.history.state.back) {
+ router.back()
+ } else router.push('/recruitHome')
// 企业埋点
@@ -262,7 +262,9 @@ const loginClose = () => {
// 富文本内容处理,去除多余的换行空格等