职业推荐
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
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:
@@ -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 />}
|
||||
|
||||
Reference in New Issue
Block a user