Browse Source

fix: BI-52258 修复复制数据连接时的bug

qufenxi
alan 5 years ago
parent
commit
2360100483
  1. 1
      src/modules/pages/maintain/forms/form.model.ts
  2. 1
      src/modules/pages/maintain/forms/form.ts

1
src/modules/pages/maintain/forms/form.model.ts

@ -31,6 +31,7 @@ export class MaintainFormModel extends Model<{
return; return;
} }
this.model.pageIndex = PAGE_INDEX.CONNECTION; this.model.pageIndex = PAGE_INDEX.CONNECTION;
this.model.isCopy = false;
}); });
}, },
updateConnection: (name: string, data: Connection) => { updateConnection: (name: string, data: Connection) => {

1
src/modules/pages/maintain/forms/form.ts

@ -37,7 +37,6 @@ export class MaintainForm extends BI.Widget {
form.connectionId = this.connectionName; form.connectionId = this.connectionName;
this.store.addConnection(form); this.store.addConnection(form);
} }
this.store.setIsCopy(false);
}, },
testEvent: () => { testEvent: () => {
const value = this.form.getSubmitValue(); const value = this.form.getSubmitValue();

Loading…
Cancel
Save