|
@@ -193,15 +193,13 @@ const GlobalHeaderRight: React.FC<{}> = () => {
|
|
|
showSearch
|
|
|
style={{ width: 200, marginLeft: 10 }}
|
|
|
placeholder={'请选择应用'}
|
|
|
- filterOption={(input, option) =>
|
|
|
- (option?.label as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
- }
|
|
|
+ filterOption={(input, option) => (option?.name as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0}
|
|
|
value={initialState?.iaaApp}
|
|
|
onChange={(e) => setInitialState({ ...initialState, iaaApp: e })}
|
|
|
loading={getAppList.loading}
|
|
|
>
|
|
|
{appList.filter(item => item.productType === productType).filter(item => item.mediaPlatform === initialState?.mediaPlatform).map(item => {
|
|
|
- return <Select.Option key={item.value} value={item.value}>
|
|
|
+ return <Select.Option key={item.value} value={item.value} name={item.label}>
|
|
|
<Space align='center'>
|
|
|
<AntdAvatar shape="square" style={{ marginBottom: 4 }} size={24} icon={<UserOutlined />} src={item?.icon} />
|
|
|
<span>{item.label}</span>
|