From 68d2e716501dfe804a8597c64a096ed82022dce2 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 17 Mar 2022 09:14:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=9C=B0=E5=8C=BA=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AiAreaPicker.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/AiAreaPicker.vue b/src/components/AiAreaPicker.vue index 19eb53d1..5e4d4662 100644 --- a/src/components/AiAreaPicker.vue +++ b/src/components/AiAreaPicker.vue @@ -22,7 +22,7 @@
+ v-text="area.levelLabel" @click="selectNode(area, i)"/>
@@ -40,8 +40,8 @@
-
取消
-
确定
+
取消
+
确定
@@ -208,7 +208,10 @@ export default { }) }, selectNode(area, i) { - this.fullArea.splice(i + 1, this.fullArea.length - i) + let deleteCount = this.fullArea.length - i + if (deleteCount > 0) { + this.fullArea.splice(i + 1, deleteCount) + } if (this.all && !area.id) { this.index = '' this.getProvinces()