Browse Source

Pull request #8610: REPORT-111534 fix:数据连接脏补下容错

Merge in DEC/decision-webui-dcm from ~AUSTIN.DUAN/decision-webui-dcm:release/11.0 to release/11.0

* commit 'fc3f98bbf04002a1da9655721339f1d14253bdc4':
  REPORT-111534 fix:数据连接脏数据容错
release/11.0
Austin.Duan-段嗣跃 11 months ago
parent
commit
3b77884e1f
  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");
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));

Loading…
Cancel
Save