Browse Source

Merge pull request #8611 in DEC/decision-webui-dcm from release/11.0 to bugfix/11.0

* commit '3b77884e1f6d477c0c4f19e0d2f2ddb641b78635':
  REPORT-111534 fix:数据连接脏数据容错
bugfix/11.0
superman 11 months ago
parent
commit
e38b262b1d
  1. 3
      src/modules/pages/connection/list/list.model.ts

3
src/modules/pages/connection/list/list.model.ts

@ -29,6 +29,9 @@ export class ConnectionListModel extends Model<{
.getHashSearchParams("databaseId"); .getHashSearchParams("databaseId");
this.model.connections.forEach(item => { 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)); BI.isString(item.connectionData) && (item.connectionData = JSON.parse(item.connectionData as string));

Loading…
Cancel
Save