Skip to content

Commit

Permalink
fix(ApiSelect): 支持x.x.x格式 (vbenjs#2637)
Browse files Browse the repository at this point in the history
Co-authored-by: whong <[email protected]>
  • Loading branch information
wh-if and whong authored Mar 23, 2023
1 parent f2ec2ca commit d620758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Form/src/components/ApiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@
return unref(options).reduce((prev, next: Recordable) => {
if (next) {
const value = next[valueField];
const value = get(next, valueField);
prev.push({
...omit(next, [labelField, valueField]),
label: next[labelField],
label: get(next, labelField),
value: numberToString ? `${value}` : value,
});
}
Expand Down

0 comments on commit d620758

Please sign in to comment.