From 83d86c58ed172baadadf60e925de2a448d6d71df Mon Sep 17 00:00:00 2001 From: none Date: Fri, 3 Mar 2023 14:00:35 +0800 Subject: [PATCH] =?UTF-8?q?401=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/internal/httpClient.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 {