From cdf783f0924c07b3555a90c36c140f902247c2b3 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期二, 17 十月 2023 20:49:48 +0800 Subject: [PATCH] feat: 更换退款接口,修复取值错误问题 --- src/common/untils/request.js | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/common/untils/request.js b/src/common/untils/request.js index 173cccd..9cb4874 100644 --- a/src/common/untils/request.js +++ b/src/common/untils/request.js @@ -86,6 +86,15 @@ } }, (error) => { + if (error.response.status === 401){ + if (isDev){ + alert("JWT澶辨晥") + }else { + // JWT閴存潈澶辨晥 璺宠浆鍒扮櫥褰曢〉 + window.location = getApsPage()+'/login' + } + } + let { message } = error if (message === "Network Error") { message = "鍚庣鎺ュ彛杩炴帴寮傚父" -- Gitblit v1.8.0