wjx 7 mesiacov pred
rodič
commit
af61021641
1 zmenil súbory, kde vykonal 2 pridanie a 4 odobranie
  1. 2 4
      src/components/RightContent/index.tsx

+ 2 - 4
src/components/RightContent/index.tsx

@@ -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>