mirror of
https://github.com/PlayEdu/backend
synced 2025-06-29 10:42:47 +08:00
401跳转
This commit is contained in:
parent
233e7d904e
commit
83d86c58ed
@ -1,11 +1,10 @@
|
|||||||
import axios, { Axios, AxiosResponse } from "axios";
|
import axios, { Axios, AxiosResponse } from "axios";
|
||||||
import { message } from "antd";
|
import { message } from "antd";
|
||||||
import { getToken, clearToken } from "../../utils/index";
|
import { getToken, clearToken } from "../../utils/index";
|
||||||
import { redirect } from "react-router-dom";
|
|
||||||
|
|
||||||
const GoLogin = () => {
|
const GoLogin = () => {
|
||||||
clearToken();
|
clearToken();
|
||||||
redirect("/login");
|
window.location.href = "/login";
|
||||||
};
|
};
|
||||||
|
|
||||||
export class HttpClient {
|
export class HttpClient {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user