From 9326dd8e9c49a1b9b9bf663e6a9eecf2c5c8524d Mon Sep 17 00:00:00 2001 From: cool Date: Wed, 29 Nov 2023 15:23:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E7=82=B9=E7=99=BB=E5=BD=95=E6=9C=AA?= =?UTF-8?q?=E5=BC=80=E5=90=AF=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E6=B8=85=E9=99=A4=E7=94=A8=E6=88=B7=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/base/service/sys/login.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/base/service/sys/login.ts b/src/modules/base/service/sys/login.ts index 15309af..7354fc4 100644 --- a/src/modules/base/service/sys/login.ts +++ b/src/modules/base/service/sys/login.ts @@ -162,6 +162,7 @@ export class BaseSysLoginService extends BaseService { * 退出登录 */ async logout() { + if (!this.coolConfig.jwt.sso) return; const { userId } = this.ctx.admin; await this.cacheManager.del(`admin:department:${userId}`); await this.cacheManager.del(`admin:perms:${userId}`);