diff --git a/src/views/statistics/Statistics/statistics/index.vue b/src/views/statistics/Statistics/statistics/index.vue index 03b6d73..7ec8453 100644 --- a/src/views/statistics/Statistics/statistics/index.vue +++ b/src/views/statistics/Statistics/statistics/index.vue @@ -346,7 +346,10 @@ export default { }, stationChange(val) { if (val.length != 0) { - // this.isDefault = false + if (this.chartLayout.length == 2) { + let index = this.chartLayout.findIndex((item) => item !== val[0]) + this.chartLayout.splice(index, 1) + } if (val.length == 2) { this.stationOptions.forEach((item) => { if (!val.includes(item.value)) {