fix: 看板拓扑非网元点击排除
This commit is contained in:
@@ -76,8 +76,8 @@ function fnGraphEvent(graph: Graph) {
|
|||||||
// 节点点击
|
// 节点点击
|
||||||
graph.on('node:click', evt => {
|
graph.on('node:click', evt => {
|
||||||
// 获得鼠标当前目标节点
|
// 获得鼠标当前目标节点
|
||||||
const node = evt.item?.getModel();
|
const node = evt.item?.getModel();
|
||||||
if (node && node.id) {
|
if (node && node.id && !notNeNodes.includes(node.id)) {
|
||||||
graphNodeClickID.value = node.id;
|
graphNodeClickID.value = node.id;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user