diff --git a/src/views/charts2/charts/npm/NpmLine.vue b/src/views/charts2/charts/npm/NpmLine.vue index 6fa9f037..4ae2aca8 100644 --- a/src/views/charts2/charts/npm/NpmLine.vue +++ b/src/views/charts2/charts/npm/NpmLine.vue @@ -132,11 +132,11 @@ export default { this.isNoData = res.data.result.length === 0 if (this.chart.params.index === 0) { res.data.result.forEach((t, i) => { - if (t.type === 'totalBytesRate') { + if (t.type === 'totalBitsRate') { this.chartOptionLineData[i].values = t.values - } else if (t.type === 'inboundBytesRate') { + } else if (t.type === 'inboundBitsRate') { this.chartOptionLineData[i].values = t.values - } else if (t.type === 'outboundBytesRate') { + } else if (t.type === 'outboundBitsRate') { this.chartOptionLineData[i].values = t.values } })