mirror of
https://github.com/PlayEdu/backend
synced 2025-06-29 05:55:22 +08:00
401跳转
This commit is contained in:
parent
233e7d904e
commit
83d86c58ed
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user