From 25c09d30599653a683a0d4757939e8065afecdec Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Thu, 4 Aug 2022 09:14:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=BB=E5=9C=88=E5=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/visual/command/cpts/sidemenu-left.vue | 14 ++++++++++++-- src/views/modules/visual/command/index.vue | 6 +++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/views/modules/visual/command/cpts/sidemenu-left.vue b/src/views/modules/visual/command/cpts/sidemenu-left.vue index 4efcf3374..4b775ec12 100644 --- a/src/views/modules/visual/command/cpts/sidemenu-left.vue +++ b/src/views/modules/visual/command/cpts/sidemenu-left.vue @@ -145,9 +145,19 @@ export default { }, handleClickItem(item) { + console.log("handleClickItem", item); if (item.categoryKey) { - this.currentKey = item.categoryKey; - this.currentItem = { ...item }; + if (item.categoryKey != this.currentKey) { + this.currentKey = item.categoryKey; + this.currentItem = { ...item }; + } else { + this.currentKey = ""; + this.currentItem = { + categoryKey: "", + coverageType: "", + placeType: "", + }; + } } else { this.currentUnfolded = this.currentUnfolded == item.placeType ? "" : item.placeType; diff --git a/src/views/modules/visual/command/index.vue b/src/views/modules/visual/command/index.vue index f06adb938..299e8364e 100644 --- a/src/views/modules/visual/command/index.vue +++ b/src/views/modules/visual/command/index.vue @@ -50,7 +50,8 @@ @keyup.enter="handleSearch" v-model="searchName" /> -