diff --git a/src/api/logManage/logSet.ts b/src/api/logManage/logSet.ts index d09e9278..21a00ff9 100644 --- a/src/api/logManage/logSet.ts +++ b/src/api/logManage/logSet.ts @@ -249,7 +249,7 @@ export async function exportLog(query: Record) { order begin_time,end_time`; } 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({ @@ -286,7 +286,7 @@ export async function backupLog(logType: string) { result.data = v; return result; } else { - return { code: RESULT_CODE_ERROR, msg: RESULT_MSG_ERROR }; + return { code: RESULT_CODE_ERROR, msg: RESULT_MSG_ERROR, data: 0 }; } } return result;