From 46bb144f0adcaf5b9f1d0a28dd225cb0b2bb0c35 Mon Sep 17 00:00:00 2001 From: unknown <18119604035@163.com> Date: Fri, 26 Jan 2024 10:53:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/internal/httpClient.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/api/internal/httpClient.ts b/src/api/internal/httpClient.ts index 8c75dee..7f19cb9 100644 --- a/src/api/internal/httpClient.ts +++ b/src/api/internal/httpClient.ts @@ -1,9 +1,16 @@ import axios, { Axios, AxiosResponse } from "axios"; import { message } from "antd"; -import { getToken, clearToken } from "../../utils/index"; +import { + getToken, + clearToken, + clearDepKey, + clearDepName, +} from "../../utils/index"; const GoLogin = () => { clearToken(); + clearDepName(); + clearDepKey(); window.location.href = "/login"; };