mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-07 09:57:47 +08:00
refactor: 抽离 AI pipeline 与调度共享能力逻辑
This commit is contained in:
@@ -155,7 +155,12 @@ export const cacheApi = {
|
||||
const response = await api.get('/api/admin/monitoring/cache/affinities', {
|
||||
params: keyword ? { keyword } : undefined
|
||||
})
|
||||
return response.data.data
|
||||
const data = response.data.data ?? {}
|
||||
return {
|
||||
items: data.items ?? [],
|
||||
total: data.meta?.total ?? data.items?.length ?? 0,
|
||||
matched_user_id: data.matched_user_id ?? null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user