mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-25 16:16:20 +08:00
@@ -230,12 +230,14 @@ export function useFormEvents({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const obj: Recordable = {};
|
const obj: Recordable = {};
|
||||||
|
const currentFieldsValue = getFieldsValue();
|
||||||
schemas.forEach((item) => {
|
schemas.forEach((item) => {
|
||||||
if (
|
if (
|
||||||
item.component != 'Divider' &&
|
item.component != 'Divider' &&
|
||||||
Reflect.has(item, 'field') &&
|
Reflect.has(item, 'field') &&
|
||||||
item.field &&
|
item.field &&
|
||||||
!isNullOrUnDef(item.defaultValue)
|
!isNullOrUnDef(item.defaultValue) &&
|
||||||
|
!(item.field in currentFieldsValue)
|
||||||
) {
|
) {
|
||||||
obj[item.field] = item.defaultValue;
|
obj[item.field] = item.defaultValue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user