AI统计
This commit is contained in:
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user