Browse Source

fix: DEC-9992 编辑页面不显示返回按钮

qufenxi
alan 5 years ago
parent
commit
14a7c3bacc
  1. 3
      assets/scripts/dec.js
  2. 4
      src/modules/pages/maintain/maintain.ts

3
assets/scripts/dec.js

@ -20,4 +20,7 @@ window.Dec = {
socket: {
connected: false,
},
personal: {
username: ''
}
}

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

Loading…
Cancel
Save