fix: when the form is destroyed, the form parameters still exist (#4834)

* fix: when the form is destroyed, the form parameters still exist

* chore: update deps
This commit is contained in:
Vben
2024-11-07 22:36:26 +08:00
committed by GitHub
parent dcdebaf7ca
commit 8f1e397077
9 changed files with 159 additions and 154 deletions

View File

@@ -253,6 +253,7 @@ export class FormApi {
}
unmount() {
this.form?.resetForm?.();
// this.state = null;
this.isMounted = false;
this.stateHandler.reset();