From fc3f98bbf04002a1da9655721339f1d14253bdc4 Mon Sep 17 00:00:00 2001 From: "Austin.Duan" Date: Tue, 19 Dec 2023 11:57:18 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-111534=20fix=EF=BC=9A=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E8=84=8F=E6=95=B0=E6=8D=AE=E5=AE=B9=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/pages/connection/list/list.model.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/pages/connection/list/list.model.ts b/src/modules/pages/connection/list/list.model.ts index a4bf602..3d30378 100644 --- a/src/modules/pages/connection/list/list.model.ts +++ b/src/modules/pages/connection/list/list.model.ts @@ -29,6 +29,9 @@ export class ConnectionListModel extends Model<{ .getHashSearchParams("databaseId"); this.model.connections.forEach(item => { + // REPORT-111534 有些环境存在脏数据,补下容错 + if (BI.isNull(item.connectionData)) return; + // 后端传过来的是字符串,转为对象 BI.isString(item.connectionData) && (item.connectionData = JSON.parse(item.connectionData as string));