mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-24 20:35:50 +08:00
api重复两次替换
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user