From b652d55cfec7aee78e7b6007da7fa0e472d45a4a Mon Sep 17 00:00:00 2001 From: teukkk Date: Fri, 22 Nov 2024 16:17:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=AE=9A=E4=B9=89-MOCK-=E9=AB=98=E7=BA=A7=E6=90=9C=E7=B4=A2-?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E9=80=89=E6=8B=A9=E7=8A=B6=E6=80=81=E5=90=8E?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1049395 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001049395 --- frontend/src/components/business/ms-select/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/business/ms-select/index.tsx b/frontend/src/components/business/ms-select/index.tsx index e55f50373b..05e4c32198 100644 --- a/frontend/src/components/business/ms-select/index.tsx +++ b/frontend/src/components/business/ms-select/index.tsx @@ -454,8 +454,8 @@ export default defineComponent( } const option = remoteOriginOptions.value.find( (e) => - e[props.valueKey || 'value'].toLowerCase() === value?.toLowerCase() || - e[props.labelKey || 'label'].toLowerCase() === value?.toLowerCase() + String(e[props.valueKey || 'value']).toLowerCase() === String(value).toLowerCase() || + String(e[props.labelKey || 'label']).toLowerCase() === String(value)?.toLowerCase() ); return option ? option[props.labelKey || 'label'] : props.optionNotExitsText || t('ms.select.optionsNotExits'); }