From 5c73a26d21df325b6f1da7129ef71655c33184bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Wed, 24 Jan 2024 18:11:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86station=E5=8F=B0=E7=AB=99?= =?UTF-8?q?=E5=8F=98=E5=8C=96=E6=98=AF=EF=BC=8C=E5=AF=B9=E5=BA=94=E7=9A=84?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E6=9B=B4=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/Statistics/statistics/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) {