소스 검색

fix(search): delete history

Lind 4 년 전
부모
커밋
1fd85d0b67
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/SearchComponent/index.tsx

+ 1 - 1
src/components/SearchComponent/index.tsx

@@ -224,7 +224,7 @@ const SearchComponent = <T extends Record<string, any>>({ field, onSearch, targe
             <span style={{ marginRight: '5px' }}>{item.name}</span>
             <Popconfirm
               onConfirm={async () => {
-                const response = await service.history.remove(target, item.key);
+                const response = await service.history.remove(`${target}-search`, item.key);
                 if (response.status === 200) {
                   message.success('操作成功');
                   const temp = history.filter((h: any) => h.key !== item.key);