api重复两次替换

This commit is contained in:
禺狨 2023-04-11 16:42:33 +08:00
parent b6bee05379
commit 2bb831bf7c

View File

@ -22,7 +22,9 @@ export const UserInfoModel: React.FC<PropInterface> = ({ open, onCancel }) => {
const [idCard, setIdCard] = useState<string>("");
useEffect(() => {
getUser();
if (open) {
getUser();
}
}, [form, open]);
const getUser = () => {