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"; };