From 9bc4c435e072b4bd496b3ba7ba3848f3816f33ea Mon Sep 17 00:00:00 2001 From: AlexBob <5199840@qq.com> Date: Tue, 25 Jun 2024 09:58:02 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(logout):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=9C=8D=E5=8A=A1=E7=9A=84=E7=99=BB=E5=87=BA?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/projects/web/src/core/security/login/login.service.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ui/projects/web/src/core/security/login/login.service.ts b/ui/projects/web/src/core/security/login/login.service.ts index 1c9c946c..9a9d06ed 100644 --- a/ui/projects/web/src/core/security/login/login.service.ts +++ b/ui/projects/web/src/core/security/login/login.service.ts @@ -62,18 +62,9 @@ export class LoginService { return this.credentials; } - /** - * 登出功能实现。 - * 该方法负责协调登录状态的解除和相关登录信息的清除工作。 - * 它调用认证模块的登出方法来解除用户认证状态,然后从存储中移除登录凭证, - * 最后将本地持有的凭证信息置为null,表示登出成功。 - */ logout() { - // 调用认证模块的登出方法,解除用户认证状态 this.auth.logout(); - // 从存储中移除登录凭证,确保凭证信息不被非法访问 this.storage.remove(this.storageKey); - // 将本地持有的凭证信息置为null,表示当前用户已登出 this.credentials = null; } }