fix: 修复npm 折线图和下钻折线图,因名称判断错误导致的移入弹窗样式问题

This commit is contained in:
@changcode
2022-11-07 10:17:24 +08:00
parent c425d87b00
commit 32a2359e0d
2 changed files with 6 additions and 2 deletions

View File

@@ -539,7 +539,11 @@ export default {
}
})
this.npmQuantity.forEach(d => {
if (this.$t(d.name) === t.seriesName) {
const nameMs = this.$t(d.name) + '(ms)'
const namePrent = this.$t(d.name) + '(%)'
if (nameMs === t.seriesName) {
t.borderColor = chartColor3[d.positioning]
} else if (namePrent === t.seriesName) {
t.borderColor = chartColor3[d.positioning]
}
})