diff --git a/src/modules/pages/connection/list/list.model.ts b/src/modules/pages/connection/list/list.model.ts index 60f3fa6..f00396a 100644 --- a/src/modules/pages/connection/list/list.model.ts +++ b/src/modules/pages/connection/list/list.model.ts @@ -20,8 +20,9 @@ export class ConnectionListModel extends Model<{ actions = { setConnections: ():Promise => api.getConnectionList().then(data => { + data.data.push(...BI.Constants.getConstant('dec.constant.connection.list')); if (BI.size(data.data) > 0) { - this.model.connections = data.data.concat(BI.Constants.getConstant('dec.constant.connection.list')); + this.model.connections = data.data; this.model.connections.forEach(item => { // 后端传过来的是字符串,转为对象 BI.isString(item.connectionData) && (item.connectionData = JSON.parse(item.connectionData as string)); diff --git a/src/modules/pages/maintain/forms/form.ts b/src/modules/pages/maintain/forms/form.ts index 2740f54..c989f1c 100644 --- a/src/modules/pages/maintain/forms/form.ts +++ b/src/modules/pages/maintain/forms/form.ts @@ -34,6 +34,7 @@ export class MaintainForm extends BI.Widget { if (sonSave) { sonSave().then((success: boolean) => { if (success) { + this.store.goFirstPage(); BI.Msg.toast(BI.i18nText("Dec-Basic_Save_Success"), { level: "success", });