From 674c9ca31f092714e57640c0c918dd2850fabef8 Mon Sep 17 00:00:00 2001 From: dearlin <1261008090@qq.com> Date: Wed, 17 Jan 2024 16:44:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=BB=9Arequest=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index 0d8e94d..917b89a 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -86,13 +86,13 @@ service.interceptors.response.use( }, error => { if (error.response.status == '404') { - // MessageBox.alert('登录失效,请重新登录', { - // confirmButtonText: '确定', - // callback: action => { - // sessionStorage.clear() - // location.reload() - // } - // }) + MessageBox.alert('登录失效,请重新登录', { + confirmButtonText: '确定', + callback: action => { + sessionStorage.clear() + location.reload() + } + }) // } // console.info('error:' + error.response.status) // if (error.response.status == '302') {