mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-07-20 07:07:05 +08:00
退出登录优化
This commit is contained in:
parent
6e920d8ea1
commit
46bb144f0a
@ -1,9 +1,16 @@
|
||||
import axios, { Axios, AxiosResponse } from "axios";
|
||||
import { message } from "antd";
|
||||
import { getToken, clearToken } from "../../utils/index";
|
||||
import {
|
||||
getToken,
|
||||
clearToken,
|
||||
clearDepKey,
|
||||
clearDepName,
|
||||
} from "../../utils/index";
|
||||
|
||||
const GoLogin = () => {
|
||||
clearToken();
|
||||
clearDepName();
|
||||
clearDepKey();
|
||||
window.location.href = "/login";
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user