task#,月总图表X轴数据去重

(cherry picked from commit 7b8e2efbb4)
This commit is contained in:
2025-01-09 16:59:14 +08:00
parent 7158e4aa2a
commit 156b3f04db

View File

@ -1054,8 +1054,9 @@ export default {
this.loading = false
this.detailList?.map(item => {
this.xAxisArr.push(item.month)
this.xAxisArr = [...new Set(this.xAxisArr)]; // 去重
})
// console.log(" this.xAxisArr", this.xAxisArr)
console.log(" this.xAxisArr", this.xAxisArr)
// this.xAxisArr[this.xAxisArr.length - 1] = '本月'
await this.twoTabHanldeData()
}else if (this.active === 3) {