From 2bb831bf7cf589e1ccecf89305d453e02840ec4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Tue, 11 Apr 2023 16:42:33 +0800 Subject: [PATCH] =?UTF-8?q?api=E9=87=8D=E5=A4=8D=E4=B8=A4=E6=AC=A1?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/user-info/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compenents/user-info/index.tsx b/src/compenents/user-info/index.tsx index e8957f7..22dc743 100644 --- a/src/compenents/user-info/index.tsx +++ b/src/compenents/user-info/index.tsx @@ -22,7 +22,9 @@ export const UserInfoModel: React.FC = ({ open, onCancel }) => { const [idCard, setIdCard] = useState(""); useEffect(() => { - getUser(); + if (open) { + getUser(); + } }, [form, open]); const getUser = () => {