退出登录优化

This commit is contained in:
unknown 2024-01-26 10:53:44 +08:00
parent 6e920d8ea1
commit 46bb144f0a

View File

@ -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";
};