Cookie导出增加格式选择
- 后端: export接口增加 format 参数,支持 csv 和 custom 格式 - custom 格式: 账号----密码----ck,导出为 txt - 后端: 导出用批量查 Account 替代逐条查询,消除 N+1 - 前端: 导出按钮改为下拉菜单可选格式 - 修复: blob 导出时不再取 .data(拦截器已提取) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
e7edb56107
commit
1b20317b42
@@ -67,7 +67,7 @@ export const loginApi = {
|
||||
|
||||
export const cookieApi = {
|
||||
list: () => api.get<any, any[]>('/cookies'),
|
||||
exportCsv: () => api.get('/cookies/export', { responseType: 'blob' }),
|
||||
exportCsv: (format?: string) => api.get('/cookies/export', { responseType: 'blob', params: format ? { format } : {} }),
|
||||
delete: (id: number) => api.delete<any, any>(`/cookies/${id}`),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user