From d620758c2f00635cf37c31b10b744f5bfbe4d31c Mon Sep 17 00:00:00 2001 From: wh <59309934+wh-if@users.noreply.github.com> Date: Thu, 23 Mar 2023 11:45:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(ApiSelect):=20=E6=94=AF=E6=8C=81x.x.x?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=20(#2637)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: whong --- src/components/Form/src/components/ApiSelect.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Form/src/components/ApiSelect.vue b/src/components/Form/src/components/ApiSelect.vue index 8bb0bfe18..1da3e3119 100644 --- a/src/components/Form/src/components/ApiSelect.vue +++ b/src/components/Form/src/components/ApiSelect.vue @@ -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, }); }