From 526bfa01bc6a315f8903ce397a203eccd1d7dbb0 Mon Sep 17 00:00:00 2001 From: dongsk Date: Mon, 6 May 2024 10:24:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/app/implementation/layout/layout.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/digital-future-summit/src/app/implementation/layout/layout.component.ts b/digital-future-summit/src/app/implementation/layout/layout.component.ts index bf90f6d..37efe7c 100644 --- a/digital-future-summit/src/app/implementation/layout/layout.component.ts +++ b/digital-future-summit/src/app/implementation/layout/layout.component.ts @@ -24,7 +24,7 @@ export class LayoutComponent implements OnInit, AfterViewInit { isDragging: boolean = false; - layoutUsers = ['digiwin0001', 'digiwin0002', 'digiwin0003', 'digiwin0004', 'digiwin0005', 'default', 'digiwinSummit', + layoutUsers = ['digiwin0001', 'digiwin0002', 'digiwin0003', 'digiwin0004', 'digiwin0005', 'default', 'M00020', 'digiwin0006', 'digiwin0007', 'digiwin0008', 'digiwin0009', 'digiwin0010', 'dongsk@digiwin.com']; divContent = { @@ -63,7 +63,7 @@ export class LayoutComponent implements OnInit, AfterViewInit { const DwUserInfo = JSON.parse(sessionStorage.getItem("DwUserInfo")); this.USER_ID = DwUserInfo.userId; - this.dragEnable = this.USER_ID === 'dongsk@digiwin.com'; + this.dragEnable = this.USER_ID === 'dongsk@digiwin.com' || this.USER_ID === 'M00020'; console.log(this.dragEnable); @@ -88,7 +88,7 @@ export class LayoutComponent implements OnInit, AfterViewInit { // 非管理员加载 this.divContent.userId = this.USER_ID; - if (this.USER_ID === 'dongsk@digiwin.com') { + if (this.USER_ID === 'dongsk@digiwin.com' || this.USER_ID === 'M00020') { this.divContent.userId = "default"; } @@ -142,7 +142,7 @@ export class LayoutComponent implements OnInit, AfterViewInit { const DwUserInfo = JSON.parse(sessionStorage.getItem("DwUserInfo")); - if (DwUserInfo.userId === 'dongsk@digiwin.com') { + if (DwUserInfo.userId === 'dongsk@digiwin.com' || DwUserInfo.userId === 'M00020') { return; }