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