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) => {