From 7a75abc22c87e872b28774935cda05bec7cd8d74 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Fri, 19 Jul 2024 16:48:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=80=E8=AF=B7=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 2 +- src/components/InvitingPersonnelModal/index.tsx | 15 +++++++++++++-- src/components/JoinMeetingModal/index.tsx | 4 ++++ src/page/Meeting/index.tsx | 2 +- src/utils/package/signalr.ts | 14 ++++++++------ 5 files changed, 27 insertions(+), 10 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 42f40dc..6fd1780 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -72,7 +72,7 @@ const App: React.FC = () => { break; } }) - }, []) + }, [navigate]) const handleResize = (): void => { setWindowSize({ width: window.innerWidth, diff --git a/src/components/InvitingPersonnelModal/index.tsx b/src/components/InvitingPersonnelModal/index.tsx index 2637c54..3f82746 100644 --- a/src/components/InvitingPersonnelModal/index.tsx +++ b/src/components/InvitingPersonnelModal/index.tsx @@ -6,6 +6,7 @@ import { SearchOutlined } from '@ant-design/icons'; import { GetUserList } from '@/api/Home/User'; import { useLocation } from 'react-router-dom'; import { PostRoomInvite } from '@/api/Meeting'; +import { storage } from '@/utils'; const InvitingPersonnelModal = forwardRef((props: any, ref: any) => { useImperativeHandle(ref, () => ({ changeInvitingPersonnelModal: () => { @@ -164,8 +165,18 @@ const InvitingPersonnelModal = forwardRef((props: any, ref: any) => {