fix: 日志导出响应类型推到
This commit is contained in:
@@ -249,7 +249,7 @@ export async function exportLog(query: Record<string, any>) {
|
|||||||
order begin_time,end_time`;
|
order begin_time,end_time`;
|
||||||
}
|
}
|
||||||
if (!querySQL) {
|
if (!querySQL) {
|
||||||
return { code: RESULT_CODE_ERROR, msg: RESULT_MSG_ERROR };
|
return { code: RESULT_CODE_ERROR, msg: RESULT_MSG_ERROR, data: [] };
|
||||||
}
|
}
|
||||||
// 发起请求
|
// 发起请求
|
||||||
const result = await request({
|
const result = await request({
|
||||||
@@ -286,7 +286,7 @@ export async function backupLog(logType: string) {
|
|||||||
result.data = v;
|
result.data = v;
|
||||||
return result;
|
return result;
|
||||||
} else {
|
} else {
|
||||||
return { code: RESULT_CODE_ERROR, msg: RESULT_MSG_ERROR };
|
return { code: RESULT_CODE_ERROR, msg: RESULT_MSG_ERROR, data: 0 };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user