Commit 23a48600 authored by mingyard's avatar mingyard

feat:输出错误请求日志

parent c9f227df
...@@ -62,6 +62,7 @@ export async function axiosPostRequest( ...@@ -62,6 +62,7 @@ export async function axiosPostRequest(
} }
throw BadRequestError.default(e.response?.data); throw BadRequestError.default(e.response?.data);
} else if (e.request) { } else if (e.request) {
console.error('e.request', JSON.stringify(e.request));
throw BadRequestError.default( throw BadRequestError.default(
JSON.stringify(e.response?.data || e.response), JSON.stringify(e.response?.data || e.response),
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment