From 14a7c3baccc551aa148ea246d4dbd77ed7bf7e65 Mon Sep 17 00:00:00 2001 From: alan Date: Tue, 24 Sep 2019 16:53:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20DEC-9992=20=E7=BC=96=E8=BE=91=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=B8=8D=E6=98=BE=E7=A4=BA=E8=BF=94=E5=9B=9E=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/scripts/dec.js | 3 +++ src/modules/pages/maintain/maintain.ts | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/assets/scripts/dec.js b/assets/scripts/dec.js index e2d12ab..5752599 100644 --- a/assets/scripts/dec.js +++ b/assets/scripts/dec.js @@ -20,4 +20,7 @@ window.Dec = { socket: { connected: false, }, + personal: { + username: '' + } } \ No newline at end of file diff --git a/src/modules/pages/maintain/maintain.ts b/src/modules/pages/maintain/maintain.ts index c9a003d..fd941de 100644 --- a/src/modules/pages/maintain/maintain.ts +++ b/src/modules/pages/maintain/maintain.ts @@ -17,7 +17,7 @@ export class Maintain extends BI.Widget { listView: any; render() { - const { text } = this.getEditConnection(); + const { text, isEdit } = this.getEditConnection(); return { type: Vtape, @@ -32,7 +32,7 @@ export class Maintain extends BI.Widget { type: IconButton, hgap: 5, cls: 'dcm-back-font', - invisible: this.model.isCopy, + invisible: this.model.isCopy || isEdit, handler: () => { this.store.setPageIndex(PAGE_INDEX.DATEBASE); },