mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-17 16:35:53 +08:00
add logout
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user