fix: Fix old user information still showing when editing repeatedly

This commit is contained in:
sy-records
2024-07-23 08:39:24 +08:00
committed by LinkinStars
parent c97134dd8d
commit bbefbbcb64
+1 -1
View File
@@ -112,7 +112,7 @@ const useChangeProfileModal = (props: IProps = {}, userData) => {
}>(null);
const onClose = () => {
setFormData(initFormData(schema));
setFormData(formData);
setVisibleState(false);
};