From b7060fc6aee893f9d498e113e09a917340a5fc2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=2EKing-=E7=8E=8B=E5=87=AF=E5=A3=AE?= Date: Tue, 7 Nov 2023 19:06:45 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-102763=20fix:=E6=95=B0=E6=8D=AE=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E6=94=AF=E6=8C=81=E5=AF=B9=E6=8E=A5=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F-=E6=8E=A5=E5=8F=A3=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/pages/connection/list/list.model.ts | 3 ++- src/modules/pages/maintain/forms/form.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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", });