From 504e4f51ccac7adb97a3bc5f42cb18ffadcaff7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E8=AA=89=E7=A8=8B?= <2659568239@qq.com> Date: Fri, 5 Jan 2024 15:43:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.ts | 3 +++ 1 file changed, 3 insertions(+) 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(); })