diff --git a/config/routes.ts b/config/routes.ts index 131abee..0ce915d 100644 --- a/config/routes.ts +++ b/config/routes.ts @@ -80,6 +80,10 @@ export default [ path: '/job-portal/message',// 消息通知页面 component: './JobPortal/Message', }, + { + path: '/job-portal/career-recommendation',// 职业推荐 + component: './JobPortal/CareerRecommendation', + }, { path: '/job-portal/policy',// 政策列表 component: './JobPortal/Policy', diff --git a/src/components/JobPortalHeader/index.tsx b/src/components/JobPortalHeader/index.tsx index e05b477..2e5709c 100644 --- a/src/components/JobPortalHeader/index.tsx +++ b/src/components/JobPortalHeader/index.tsx @@ -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 = ({ 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 = ({ > 简历 +