图表问题修改

This commit is contained in:
zhujiyan
2024-10-29 14:31:07 +08:00
parent 052037a2a6
commit 05a5531b74
3 changed files with 11 additions and 8 deletions

View File

@@ -566,7 +566,9 @@ const init = (flag: boolean) => {
seriesList.push([cc.time, cc.statisticalData?.toFixed(2), cc.unit])
})
echartsData.value.options.series.push({
name: kk[0].phase + '相' + item[0].anotherName,
name: kk[0].phase
? kk[0].phase + '相' + item[0].anotherName
: item[0].anotherName,
type: 'line',
smooth: true,
symbol: 'none',