From ba74c587b780868bf180aa139fa85f7b7ff22e90 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 17 Feb 2022 00:48:24 +0800 Subject: [PATCH] =?UTF-8?q?v3.7.0=20code=3D401=E6=97=B6request=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E6=B2=A1=E6=9C=89=E8=BF=94=E5=9B=9EPromise.reject=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/utils/request.js | 1 + 1 file changed, 1 insertion(+) diff --git a/yudao-ui-admin/src/utils/request.js b/yudao-ui-admin/src/utils/request.js index 19833119f..ea2bf7c35 100644 --- a/yudao-ui-admin/src/utils/request.js +++ b/yudao-ui-admin/src/utils/request.js @@ -73,6 +73,7 @@ service.interceptors.response.use(res => { location.href = '/index'; }) }).catch(() => {}); + return Promise.reject('error') } else if (code === 500) { Message({ message: msg,