fix: 看板拓扑网元状态改为ws数据获取

This commit is contained in:
TsMask
2024-01-29 19:56:33 +08:00
parent ed77ffc54b
commit b312e5e9b5
7 changed files with 166 additions and 147 deletions

View File

@@ -385,9 +385,11 @@ function wsMessage(res: Record<string, any>) {
// 图片类型不能填充
if (node.type.startsWith('image')) {
// 更新节点
graphG6.value.updateItem(item, {
label: newNeState.neName,
});
if (node.label !== newNeState.neName) {
graphG6.value.updateItem(item, {
label: newNeState.neName,
});
}
// 设置状态
graphG6.value.setItemState(item, 'top-right-dot', stateColor);
} else {