diff --git a/src/components/Form/src/components/ApiSelect.vue b/src/components/Form/src/components/ApiSelect.vue index 5e2ea63c..389d9f46 100644 --- a/src/components/Form/src/components/ApiSelect.vue +++ b/src/components/Form/src/components/ApiSelect.vue @@ -25,7 +25,7 @@ import { isFunction } from '/@/utils/is'; import { useRuleFormItem } from '/@/hooks/component/useFormItem'; import { useAttrs } from '/@/hooks/core/useAttrs'; - import { get } from 'lodash-es'; + import { get, omit } from 'lodash-es'; import { LoadingOutlined } from '@ant-design/icons-vue'; import { useI18n } from '/@/hooks/web/useI18n'; @@ -83,6 +83,7 @@ prev.push({ label: next[labelField], value: numberToString ? `${value}` : value, + ...omit(next, [labelField, valueField]), }); } return prev;