fix: update the requestId when switch model

This commit is contained in:
jialin
2025-07-09 16:03:07 +08:00
parent b167170aa9
commit af0aaddbfd
14 changed files with 116 additions and 27 deletions
@@ -40,6 +40,14 @@ const PaginationMain = styled(Pagination)`
}
`;
const IconFontWrapper = styled.div`
.ant-pagination-item-link {
display: flex !important;
align-items: center;
justify-content: center;
}
`;
interface SearchInputProps {
hasLinuxWorker?: boolean;
modelSource: string;
@@ -499,6 +507,7 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
if (model.id === currentRef.current) {
return;
}
setRquestId();
handleOnSelectModel(model, true);
};