()
| 43 | const isNewYear = (currentDate.getMonth() === 0 && currentDate.getDate() === 1) || (currentDate.getMonth() === 1 && currentDate.getDate() >= 9 && currentDate.getDate() <= 24); |
| 44 | |
| 45 | async function logout() { |
| 46 | setShowSidebar(false); |
| 47 | await API.get('/api/user/logout'); |
| 48 | showSuccess('注销成功!'); |
| 49 | userDispatch({ type: 'logout' }); |
| 50 | localStorage.removeItem('user'); |
| 51 | navigate('/login'); |
| 52 | } |
| 53 | |
| 54 | const handleNewYearClick = () => { |
| 55 | fireworks.init('root', {}); |
nothing calls this directly
no test coverage detected