@ -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 '测试连接':
@ -13,7 +13,7 @@ const Widget: WidgetType = {
linkSelected(linkSelected: LinkType) {
rightContent.populate(BI.createItems([
{
type: RightDetail,
type: (linkSelected && linkSelected.connectionName) ? RightDetail : Nothing,
},
]));