diff --git a/src/utils/request.ts b/src/utils/request.ts index 41950dc..7de606e 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -1,3 +1,5 @@ +import { message } from "antd"; + /** * GET 请求 * @param {string} url - 请求的 URL 地址 @@ -45,6 +47,7 @@ export function postRequest(url: string, data: object) { body: JSON.stringify(data), }) .then(response => { + message.info('response',response) if (!response.ok) { throw new Error('请求失败'); } return response.json(); })