mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-11 06:57:12 +08:00
refactor: 优化 401 状态处理逻辑
1.退出接口增加登录校验 2.前端获取用户信息失败,自动清理客户端信息并跳转回登录页
This commit is contained in:
@@ -110,7 +110,6 @@ public class AuthController {
|
||||
return LoginResp.builder().token(token).build();
|
||||
}
|
||||
|
||||
@SaIgnore
|
||||
@Operation(summary = "用户退出", description = "注销用户的当前登录")
|
||||
@Parameter(name = "Authorization", description = "令牌", required = true, example = "Bearer xxxx-xxxx-xxxx-xxxx",
|
||||
in = ParameterIn.HEADER)
|
||||
|
Reference in New Issue
Block a user