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 { DateRange, useGlobalStateStore } from '../store/global';
import { DateUnit } from '../utils/date'; import { DateUnit } from '../utils/date';
import { useTranslation } from '@i18next-toolkit/react'; import { useTranslation } from '@i18next-toolkit/react';
import { CalendarOutlined } from '@ant-design/icons';
export function useGlobalRangeDate(): { export function useGlobalRangeDate(): {
label: React.ReactNode; label: React.ReactNode;

View File

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

View File

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