职业推荐
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled

This commit is contained in:
francis-fh
2026-06-05 16:27:19 +08:00
parent fdd80c6cd1
commit 56dce1e5d3
5 changed files with 824 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ import {
BellOutlined,
ReadOutlined,
LoginOutlined,
FundProjectionScreenOutlined,
} from '@ant-design/icons';
import { history, useLocation, useModel } from '@umijs/max';
import {
@@ -100,6 +101,7 @@ const JobPortalHeader: React.FC<JobPortalHeaderProps> = ({
const isMine = location.pathname.startsWith('/job-portal/personal-center') || location.pathname.startsWith('/job-portal/profile');
const isMessage = location.pathname.startsWith('/job-portal/message');
const isPolicy = location.pathname.startsWith('/job-portal/policy');
const isCareerRecommend = location.pathname.startsWith('/job-portal/career-recommendation');
// 获取未读消息数量(仅登录用户)
useEffect(() => {
@@ -277,6 +279,14 @@ const JobPortalHeader: React.FC<JobPortalHeaderProps> = ({
>
</Button>
<Button
type="text"
icon={<FundProjectionScreenOutlined />}
onClick={() => handleNavClick('/job-portal/career-recommendation')}
className={`nav-btn${isCareerRecommend ? ' active' : ''}`}
>
</Button>
<Button
type="text"
icon={<ReadOutlined />}