mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-22 11:18:57 +08:00
fix: form update state error before form mounted (#5406)
This commit is contained in:
@@ -404,9 +404,8 @@ export class FormApi {
|
|||||||
const deletedSchema = prevSchema.filter(
|
const deletedSchema = prevSchema.filter(
|
||||||
(item) => !currentFields.has(item.fieldName),
|
(item) => !currentFields.has(item.fieldName),
|
||||||
);
|
);
|
||||||
|
|
||||||
for (const schema of deletedSchema) {
|
for (const schema of deletedSchema) {
|
||||||
this.form?.setFieldValue(schema.fieldName, undefined);
|
this.form?.setFieldValue?.(schema.fieldName, undefined);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user