mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-25 06:57:12 +08:00
refactor: 优化导出下载功能
This commit is contained in:
@@ -12,3 +12,11 @@ export function listLog(query: System.LogQuery) {
|
||||
export function getLog(id: string) {
|
||||
return http.get<System.LogDetailResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
/** @desc 导出日志列表 */
|
||||
export function exportLog(query: System.LogQuery) {
|
||||
return http.download<any>(`${BASE_URL}/export/login`, query)
|
||||
}
|
||||
/**@desc 导出操作日志 */
|
||||
export function exportOperateLog(query: System.LogQuery) {
|
||||
return http.download<any>(`${BASE_URL}/export/operation`, query)
|
||||
}
|
Reference in New Issue
Block a user