diff --git a/src/modules/pages/maintain/forms/form.model.ts b/src/modules/pages/maintain/forms/form.model.ts index a41f4dd..2c3ae73 100644 --- a/src/modules/pages/maintain/forms/form.model.ts +++ b/src/modules/pages/maintain/forms/form.model.ts @@ -31,6 +31,7 @@ export class MaintainFormModel extends Model<{ return; } this.model.pageIndex = PAGE_INDEX.CONNECTION; + this.model.isCopy = false; }); }, updateConnection: (name: string, data: Connection) => { diff --git a/src/modules/pages/maintain/forms/form.ts b/src/modules/pages/maintain/forms/form.ts index acddee8..e7db2a3 100644 --- a/src/modules/pages/maintain/forms/form.ts +++ b/src/modules/pages/maintain/forms/form.ts @@ -37,7 +37,6 @@ export class MaintainForm extends BI.Widget { form.connectionId = this.connectionName; this.store.addConnection(form); } - this.store.setIsCopy(false); }, testEvent: () => { const value = this.form.getSubmitValue();