fix: 修复npm overview 折线图数据为空时 No data 占位错误问题

This commit is contained in:
@changcode
2023-01-13 14:34:52 +08:00
parent c83f64706f
commit 089887f05b
4 changed files with 14 additions and 5 deletions

View File

@@ -221,8 +221,9 @@ export default {
{ analysis: {}, name: 'network.through', class: 'through', show: true, invertTab: true, positioning: 4, data: [], unitType: '' },
{ analysis: {}, name: 'network.other', class: 'other', show: true, invertTab: true, positioning: 5, data: [], unitType: '' }
]
} else {
this.initData(res.data.result, val, active, show, n)
}
this.initData(res.data.result, val, active, show, n)
} else {
this.showError = true
this.errorMsg = res.message