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