fix(接口测试): 定义-MOCK-高级搜索-条件选择状态后显示异常

--bug=1049395 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001049395
This commit is contained in:
teukkk 2024-11-22 16:17:26 +08:00 committed by Craftsman
parent 36e381c4c5
commit b652d55cfe
1 changed files with 2 additions and 2 deletions

View File

@ -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');
}