fix(cardpage): duplicate data appears after clicking refresh

This commit is contained in:
jialin
2026-06-24 14:02:41 +08:00
committed by jialin
parent 22e5cc3aa5
commit 28976dea4b
4 changed files with 22 additions and 5 deletions
+5 -1
View File
@@ -129,6 +129,10 @@ const GPUServiceTemplates: React.FC = () => {
});
});
const handleRefresh = () => {
fetchData({ query: { ...queryParams, page: 1 } });
};
return (
<PageBox>
<FilterBar
@@ -145,7 +149,7 @@ const GPUServiceTemplates: React.FC = () => {
})}
buttonText={intl.formatMessage({ id: 'gpuservice.template.add' })}
handleClickPrimary={handleAddTemplate}
handleSearch={handleSearch}
handleSearch={handleRefresh}
handleSelectChange={handleFilterByManufacturer}
handleInputChange={handleNameChange}
rowSelection={rowSelection}