mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-07-22 02:03:17 +08:00
退出登录优化
This commit is contained in:
parent
6e920d8ea1
commit
46bb144f0a
@ -1,9 +1,16 @@
|
|||||||
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,
|
||||||
|
clearDepKey,
|
||||||
|
clearDepName,
|
||||||
|
} from "../../utils/index";
|
||||||
|
|
||||||
const GoLogin = () => {
|
const GoLogin = () => {
|
||||||
clearToken();
|
clearToken();
|
||||||
|
clearDepName();
|
||||||
|
clearDepKey();
|
||||||
window.location.href = "/login";
|
window.location.href = "/login";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user