Browse Source

fix: 修复删除数据连接的bug

master
alan 6 years ago
parent
commit
51d3d07f53
  1. 4
      src/app/link_set/link-set.model.ts
  2. 2
      src/app/link_set/right/right.component.ts

4
src/app/link_set/link-set.model.ts

@ -46,7 +46,9 @@ const Model: ModelType = {
switch (title) {
case '删除':
deleteConnection(id, (res: string) => {
this.model.linkList = [...this.model.linkList.filter((item: LinkType) => item.connectionId !== id)];
this.model.linkSelected = {};
this.model.linkUpdate = {};
});
break;
case '测试连接':

2
src/app/link_set/right/right.component.ts

@ -13,7 +13,7 @@ const Widget: WidgetType = {
linkSelected(linkSelected: LinkType) {
rightContent.populate(BI.createItems([
{
type: RightDetail,
type: (linkSelected && linkSelected.connectionName) ? RightDetail : Nothing,
},
]));
},

Loading…
Cancel
Save