NEZ-2721 fix: project topology 样式调整
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user