diff --git a/src/api/internal/httpClient.ts b/src/api/internal/httpClient.ts index 0a9e3b7..12b91b5 100644 --- a/src/api/internal/httpClient.ts +++ b/src/api/internal/httpClient.ts @@ -1,11 +1,10 @@ import axios, { Axios, AxiosResponse } from "axios"; import { message } from "antd"; import { getToken, clearToken } from "../../utils/index"; -import { redirect } from "react-router-dom"; const GoLogin = () => { clearToken(); - redirect("/login"); + window.location.href = "/login"; }; export class HttpClient {