Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,12 @@ const handleChangeTable = (
return
}

if (matchNode.target === item[type].nodeId) {
const temp = {
source: 'target',
target: 'source',
}

if (matchNode[temp[type]] === item[type].nodeId) {
matchNode = getReverseNodeInfo(matchNode)
}
const {
Expand All @@ -934,11 +939,11 @@ const handleChangeTable = (
item.target.databaseType = targetDatabaseType
return
}
// 自动填充目标连接和表
item.source.databaseType = sourceDatabaseType

item.source.databaseType = sourceDatabaseType
item.target.nodeId = target
item.target.nodeName = targetName
item.target.databaseType = targetDatabaseType
item.target.connectionId = targetConnectionId
item.target.connectionName = targetConnectionName
item.target.currentLabel = `${targetName} / ${targetConnectionName}`
Expand Down