From 6ecd98650b4cb3a3f1565ea8d2da7e5c4a94de59 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 22 Nov 2023 09:35:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A5=E5=BF=97=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E5=93=8D=E5=BA=94=E7=B1=BB=E5=9E=8B=E6=8E=A8=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/logManage/logSet.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;