From 24365a22c34b66c8aba357501da602ffc4379962 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Sat, 1 Feb 2025 11:34:17 +0800 Subject: [PATCH] =?UTF-8?q?Demo:=E5=AF=BC=E5=85=A5=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=97=B6=E9=9A=90=E8=97=8F=E6=90=9C=E7=B4=A2=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Edit/components/Search.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/pages/Edit/components/Search.vue b/web/src/pages/Edit/components/Search.vue index b03e9bf2..852a27fd 100644 --- a/web/src/pages/Edit/components/Search.vue +++ b/web/src/pages/Edit/components/Search.vue @@ -125,6 +125,7 @@ export default { ) this.mindMap.keyCommand.addShortcut('Control+f', this.showSearch) window.addEventListener('resize', this.setSearchResultListHeight) + this.$bus.$on('setData', this.close) }, mounted() { this.setSearchResultListHeight() @@ -141,6 +142,7 @@ export default { ) this.mindMap.keyCommand.removeShortcut('Control+f', this.showSearch) window.removeEventListener('resize', this.setSearchResultListHeight) + this.$bus.$off('setData', this.close) }, methods: { isUndef,