refactor: 优化 401 状态处理逻辑

1.退出接口增加登录校验
2.前端获取用户信息失败,自动清理客户端信息并跳转回登录页
This commit is contained in:
2023-11-07 19:51:35 +08:00
parent d5da1847e3
commit c70e28a535
3 changed files with 2 additions and 3 deletions

View File

@@ -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)