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}`);