add logout

This commit is contained in:
paulGao
2021-11-11 18:45:53 +08:00
parent 7ac4010910
commit 5614414185
7 changed files with 49 additions and 20 deletions

View File

@@ -49,6 +49,12 @@ export const getNoticePage = (params) => {
export const login = (params) => {
return getRequestWithNoToken("/user/login", params);
};
// 登出
export const logout = () => {
return postRequest("/user/logout");
};
// 刷新token
export const handleRefreshToken = (token) => {
return getRequestWithNoToken(`/user/refresh/${token}`);