From 793b4cbb16403f409692e9a81409fc35fc0d2558 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Mon, 12 Aug 2024 17:35:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=80=E8=AF=B7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/InvitingPersonnelModal/index.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/InvitingPersonnelModal/index.tsx b/src/components/InvitingPersonnelModal/index.tsx index 383b55a..2bf64d7 100644 --- a/src/components/InvitingPersonnelModal/index.tsx +++ b/src/components/InvitingPersonnelModal/index.tsx @@ -12,7 +12,6 @@ const InvitingPersonnelModal = forwardRef((props: any, ref: any) => { useImperativeHandle(ref, () => ({ changeInvitingPersonnelModal: () => { setCheckedList([]) - setUser(userInfo) getUserList() setIsInvitingPersonnelModal(true) } @@ -20,7 +19,6 @@ const InvitingPersonnelModal = forwardRef((props: any, ref: any) => { const { state } = useLocation(); const [isInvitingPersonnelModal, setIsInvitingPersonnelModal] = useState(false); const [isFirstRender, setIsFirstRender] = useState(true); - const [user, setUser] = useState({}); const [optionsValue, setOperationValue] = useState(1); const [list, setList] = useState({ data: [], @@ -149,7 +147,7 @@ const InvitingPersonnelModal = forwardRef((props: any, ref: any) => { return checkedList } }) - }} disabled={!item.isOnline || item.account === user.account || item.disabled} checked={item.checked}> + }} disabled={!item.isOnline || item.account === userInfo.account || item.disabled} checked={item.checked}>
{item.userName}{item.disabled ? '(已入会)' : ''} @@ -177,7 +175,7 @@ const InvitingPersonnelModal = forwardRef((props: any, ref: any) => {