From e7f4ceba45f81171341e5bbed9723c4eb08a57b2 Mon Sep 17 00:00:00 2001 From: qq55341701 <55341701@qq.com> Date: Mon, 21 Mar 2022 15:34:04 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]admin=E4=B8=8D=E5=BC=B9?= =?UTF-8?q?=E5=87=BA=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/home/home.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/pages/home/home.component.ts b/src/app/pages/home/home.component.ts index 02141b2..f985388 100644 --- a/src/app/pages/home/home.component.ts +++ b/src/app/pages/home/home.component.ts @@ -94,7 +94,7 @@ export class HomeComponent implements OnInit { } - if (sessionStorage.getItem('isDefaultPassword') == 'true' || sessionStorage.getItem('isPasswordExpired') == 'true') { + if ((sessionStorage.getItem('isDefaultPassword') == 'true' || sessionStorage.getItem('isPasswordExpired') == 'true') && JSON.parse(sessionStorage.getItem('userdata')).userName != 'admin') { this.changePasswordPopup() }