From 5b8662b4410c1b46b18b013aa83d0c0e992d2e29 Mon Sep 17 00:00:00 2001 From: 2183691628 <2183691628@qq.com> Date: Fri, 7 Jan 2022 15:16:56 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E6=94=B9=20=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E8=BF=87=E6=9C=9F=E6=8F=90=E7=A4=BA=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++-- src/utils/request.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f85072c..7b9fe9f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ @@ -153,4 +153,5 @@ FIX ## v1.1.8F `2021年1月7日` FIX -- 修改 登录过期提示 \ No newline at end of file +- 修改 登录过期提示 +- 修改 登录过期提示一 \ No newline at end of file diff --git a/src/utils/request.js b/src/utils/request.js index f215584..5d5b473 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -1,7 +1,7 @@ /* * @Date: 2021-12-08 15:59:46 * @LastEditors: JinxuChen - * @LastEditTime: 2022-01-07 14:58:45 + * @LastEditTime: 2022-01-07 15:15:13 * @FilePath: \GpsCardAdmin\src\utils\request.js * @description: */ @@ -82,8 +82,9 @@ service.interceptors.response.use( location.reload() }) }, 1500) + return Promise.reject(new Error('token过期,请重新登录')) } - return Promise.reject(new Error('token过期,请重新登录')) + return Promise.reject(new Error(res.message)) } else { return res }