From 9920957796f9b0b0e3e7319e3360112688e470c0 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 25 Jul 2021 11:36:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=A0=81401=E8=BF=94?= =?UTF-8?q?=E5=9B=9EPromise.reject?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/utils/request.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ruoyi-ui/src/utils/request.js b/ruoyi-ui/src/utils/request.js index 14879eb..46a593b 100644 --- a/ruoyi-ui/src/utils/request.js +++ b/ruoyi-ui/src/utils/request.js @@ -66,6 +66,7 @@ service.interceptors.response.use(res => { location.href = '/index'; }) }).catch(() => {}); + return Promise.reject('error') } else if (code === 500) { Message({ message: msg,