NEZ-2721 fix: project topology 样式调整

This commit is contained in:
zhangyu
2023-03-23 18:02:03 +08:00
parent 0cbdf76619
commit b2ed837b80
10 changed files with 368 additions and 223 deletions

View File

@@ -48,6 +48,15 @@ export function setTopology (key, value) {
delete topologyCache[`topology${key}`]
}
}
export function clearTopology () {
Object.keys(topologyCache).forEach(key => {
if (topologyCache[`topology${key}`]) {
topologyCache[`topology${key}`].destroy()
topologyCache[`topology${key}`] = null
delete topologyCache[`topology${key}`]
}
})
}
export function clearTopologyCache () {
topologyCache = {}