fix: remove redundant form reset calls in useCreateAction and useUpdateAction

This commit is contained in:
Zeke Zhang 2025-04-25 20:52:37 +08:00
parent c999ae4040
commit d81f75acb4

View File

@ -108,7 +108,6 @@ export const useCreateAction = () => {
}, },
}); });
ctx.setVisible(false); ctx.setVisible(false);
await form.reset();
field.data.loading = false; field.data.loading = false;
refresh(); refresh();
} catch (error) { } catch (error) {
@ -142,7 +141,6 @@ export const useUpdateAction = () => {
}, },
}); });
ctx.setVisible(false); ctx.setVisible(false);
await form.reset();
refresh(); refresh();
} catch (e) { } catch (e) {
console.log(e); console.log(e);