fix: 员工端首页快捷入口添加个人资料和我的记录
手机端底部TabBar只有5个固定入口,个人资料通过首页快捷入口访问
This commit is contained in:
@@ -6,7 +6,7 @@ import { useQuery } from '@tanstack/react-query'
|
|||||||
import { Link } from 'react-router-dom'
|
import { Link } from 'react-router-dom'
|
||||||
import {
|
import {
|
||||||
DollarSign, FileText, CalendarCheck, ScrollText, CalendarClock,
|
DollarSign, FileText, CalendarCheck, ScrollText, CalendarClock,
|
||||||
AlertCircle, ChevronRight, UserX, PenTool,
|
AlertCircle, ChevronRight, UserX, PenTool, UserCircle, ClipboardList,
|
||||||
} from 'lucide-react'
|
} from 'lucide-react'
|
||||||
import { portalApi } from '../../lib/api-services'
|
import { portalApi } from '../../lib/api-services'
|
||||||
import Card from '../../components/ui/Card'
|
import Card from '../../components/ui/Card'
|
||||||
@@ -23,6 +23,8 @@ const QUICK_ACTIONS = [
|
|||||||
{ path: '/portal/attendance', label: '我的考勤', icon: CalendarCheck, color: 'bg-purple-50 text-purple-600' },
|
{ path: '/portal/attendance', label: '我的考勤', icon: CalendarCheck, color: 'bg-purple-50 text-purple-600' },
|
||||||
{ path: '/portal/leave', label: '休假申请', icon: CalendarClock, color: 'bg-cyan-50 text-cyan-600' },
|
{ path: '/portal/leave', label: '休假申请', icon: CalendarClock, color: 'bg-cyan-50 text-cyan-600' },
|
||||||
{ path: '/portal/policies', label: '规章制度', icon: ScrollText, color: 'bg-amber-50 text-amber-600' },
|
{ path: '/portal/policies', label: '规章制度', icon: ScrollText, color: 'bg-amber-50 text-amber-600' },
|
||||||
|
{ path: '/portal/records', label: '我的记录', icon: ClipboardList, color: 'bg-slate-50 text-slate-600' },
|
||||||
|
{ path: '/portal/profile', label: '个人资料', icon: UserCircle, color: 'bg-indigo-50 text-indigo-600' },
|
||||||
]
|
]
|
||||||
|
|
||||||
export default function EmployeeHome() {
|
export default function EmployeeHome() {
|
||||||
|
|||||||
Reference in New Issue
Block a user