fix: cache current list query params

This commit is contained in:
jialin
2026-01-15 16:20:05 +08:00
parent 6445061836
commit 0a9cc1e17a
3 changed files with 27 additions and 8 deletions
+6 -2
View File
@@ -42,11 +42,15 @@ export async function downloadWorkerPrivateKey({
}
export async function queryWorkersList<T extends Record<string, any>>(
params: Global.SearchParams & T
params: Global.SearchParams & T,
options?: {
token: any;
}
) {
return request<Global.PageResponse<ListItem>>(`${WORKERS_API}`, {
method: 'GET',
params
params,
cancelToken: options?.token
});
}
@@ -68,6 +68,7 @@ const ModelFiles = () => {
deleteAPI: deleteModelFile,
API: MODEL_FILES_API,
watch: true,
updateManually: true,
contentForDelete: 'resources.modelfiles.modelfile'
});
const intl = useIntl();