fix: 修复npm events tab没有饼图的问题

This commit is contained in:
chenjinsong
2022-10-12 23:03:30 +08:00
parent d6cc6ce1f4
commit 1bfe05e33c

View File

@@ -117,7 +117,9 @@ export default {
}
})
this.chartData = arrData.sort((a, b) => { return b.value - a.value })
this.init()
this.$nextTick(() => {
this.init()
})
} else {
this.isNoData = true
}