From fe3d376aac104a28e7c4d7f340c5701a9c84e926 Mon Sep 17 00:00:00 2001 From: duanliangtao Date: Tue, 26 Sep 2023 13:39:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=97=E9=81=93=E7=BA=A7?= =?UTF-8?q?=E5=88=AB=E7=9A=84=E7=94=A8=E6=88=B7=E6=97=A0=E6=B3=95=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E7=BD=91=E6=A0=BC=E6=9F=A5=E6=89=BE=E5=88=B0=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E6=88=BF=E5=B1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/resiSearch.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index c8b6b9a07..6fdf20724 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -833,12 +833,11 @@ export default { } else { agencyIdTemp = this.form.agencyId[this.form.agencyId.length - 1] } - const gridIdQuery = ''; - const agencyIdQuery = this.form.agencyId[0]; + var gridIdQuery = ''; + var agencyIdQuery = this.form.agencyId[0]; if (this.form.agencyId.length >= 2) { - lastIndex = this.form.agencyId.length - 1; - agencyIdQuery= this.form.agencyId[lastIndex - 1]; - gridIdQuery = this.form.agencyId[lastIndex]; + agencyIdQuery= this.form.agencyId[this.form.agencyId.length - 2]; + gridIdQuery = this.form.agencyId[this.form.agencyId.length - 1]; } this.$http