fix: 修改首次添加的图标 无法添加多个metric的问题
This commit is contained in:
@@ -1286,6 +1286,10 @@ export default {
|
||||
data.data.expressArr.push('')
|
||||
data.data.legends.push('')
|
||||
}
|
||||
if (data.data.expressAllArr.length === 0 && event !== 'node') {
|
||||
data.data.expressAllArr.push('')
|
||||
data.data.legendsAll.push('')
|
||||
}
|
||||
this.props = {
|
||||
node: data,
|
||||
line: null,
|
||||
@@ -1961,6 +1965,14 @@ export default {
|
||||
return true
|
||||
}
|
||||
})
|
||||
item.data.expressAllArr = item.data.expressAllArr.filter((expression, i) => {
|
||||
if (!expression) {
|
||||
item.data.legendsAll.splice(i, 1)
|
||||
return false
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
})
|
||||
})
|
||||
if (this.penToolTipScale == getTopology(this.topologyIndex).data.scale) {
|
||||
getTopology(this.topologyIndex).data.scale = this.oldScale
|
||||
|
||||
Reference in New Issue
Block a user