This commit is contained in:
liuye
2024-02-05 10:48:56 +08:00
parent eaf7819d22
commit 0c940de38d

View File

@@ -218,9 +218,11 @@ export default {
if (res?.data) {
if(res.data.length) {
var barX = []
res.data.map((item) => {
barX.push(item.tag)
this.barData.push(item.c)
res.data.map((item, index) => {
if(index < 10) {
barX.push(item.tag)
this.barData.push(item.c)
}
var i = { name: item.tag, value: item.c };
this.wordData.push(i);
})