mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-08 13:46:23 +08:00
api重复两次替换
This commit is contained in:
parent
b6bee05379
commit
2bb831bf7c
@ -22,7 +22,9 @@ export const UserInfoModel: React.FC<PropInterface> = ({ open, onCancel }) => {
|
|||||||
const [idCard, setIdCard] = useState<string>("");
|
const [idCard, setIdCard] = useState<string>("");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getUser();
|
if (open) {
|
||||||
|
getUser();
|
||||||
|
}
|
||||||
}, [form, open]);
|
}, [form, open]);
|
||||||
|
|
||||||
const getUser = () => {
|
const getUser = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user