chore: fix ci problem

This commit is contained in:
moonrailgun 2024-08-18 22:41:06 +08:00
parent e983092037
commit f7e1c8114b
3 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import { getMinimumUnit } from '@tianji/shared';
import { DateRange, useGlobalStateStore } from '../store/global';
import { DateUnit } from '../utils/date';
import { useTranslation } from '@i18next-toolkit/react';
import { CalendarOutlined } from '@ant-design/icons';
export function useGlobalRangeDate(): {
label: React.ReactNode;

View File

@ -1,7 +1,6 @@
import { Form, Typography } from 'antd';
import { useRequest } from '../hooks/useRequest';
import { trpc } from '../api/trpc';
import { setJWT } from '../api/authjs';
import { setUserInfo } from '../store/user';
import { useTranslation } from '@i18next-toolkit/react';
import { createFileRoute, useNavigate } from '@tanstack/react-router';

View File

@ -26,6 +26,7 @@ export function initSocketio(httpServer: HTTPServer) {
try {
const token = socket.handshake.auth['token'];
let user: UserAuthPayload;
if (token) {
user = jwtVerify(token);
} else {