fix(接口测试): 定义-MOCK-高级搜索-条件选择状态后显示异常
--bug=1049395 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001049395
This commit is contained in:
parent
36e381c4c5
commit
b652d55cfe
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue