From c251f909e55a669188abed6c719d19e914358bf1 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:46:21 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/request.ts b/src/utils/request.ts index 7de606e..051a477 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -47,11 +47,11 @@ export function postRequest(url: string, data: object) { body: JSON.stringify(data), }) .then(response => { - message.info('response',response) + message.info('response',url,response) if (!response.ok) { throw new Error('请求失败'); } return response.json(); }) - .catch(error => console.error(error)); + .catch(error => {console.error(error), message.info('responerrorse',url,error)}); }