添加退出登录

This commit is contained in:
李志鹏
2025-10-27 14:02:26 +08:00
parent 7807f12367
commit 5c5766f4c4
3 changed files with 31 additions and 9 deletions

View File

@@ -37,4 +37,11 @@ export const checkLoginStatus = (): Promise<ApiResponse<LoginResponse>> => {
url: '/api/auth/checkLoginStatus',
method: 'get'
})
}
export const LogOut = (): Promise<ApiResponse> => {
return request({
url: '/api/auth/logout',
method: 'get'
})
}