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" /> -