fix: cache current list query params
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user