From 350ce56767392ab17990e4c3b6f6390341e70241 Mon Sep 17 00:00:00 2001 From: zoujing Date: Tue, 7 Apr 2026 18:16:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=99=BB=E5=BD=95=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=E5=86=8D=E6=AC=A1=E8=B7=B3=E8=BD=AC=E5=88=B0?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=9A=84=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/base/request.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/request/base/request.js b/src/request/base/request.js index 7c7df08..42d76e1 100644 --- a/src/request/base/request.js +++ b/src/request/base/request.js @@ -2,6 +2,7 @@ import { getCurrentConfig } from "@/constant/base"; import { useAppStore } from "@/store"; import { NOTICE_EVENT_LOGOUT } from "@/constant/constant"; import { getAccessToken } from "@/constant/token"; +import { goLogin } from "../../hooks/useGoLogin"; const clientId = getCurrentConfig().clientId; const defaultConfig = { @@ -60,6 +61,10 @@ function request(url, args = {}, method = "POST", customConfig = {}) { console.log("424错误,重新登录"); removeAccessToken(); uni.$emit(NOTICE_EVENT_LOGOUT); + setTimeout(() => { + /// 去登录页面 + goLogin(); + }, 500); } }, fail: (err) => {