From 5bd96b8dd3861b774698616e0b959156f8b4f033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E8=8F=9C=E7=99=BD=E7=8E=89=E6=B1=A4?= <79054161+Azir-11@users.noreply.github.com> Date: Sun, 2 Jun 2024 00:41:00 +0800 Subject: [PATCH] fix(components): Fix the issue of search box popping up repeatedly due to carriage return (#468) --- src/layouts/modules/global-search/components/search-modal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/modules/global-search/components/search-modal.vue b/src/layouts/modules/global-search/components/search-modal.vue index d36272cbd..39f18a849 100644 --- a/src/layouts/modules/global-search/components/search-modal.vue +++ b/src/layouts/modules/global-search/components/search-modal.vue @@ -34,9 +34,9 @@ function search() { } function handleClose() { - visible.value = false; // handle with setTimeout to prevent user from seeing some operations setTimeout(() => { + visible.value = false; resultOptions.value = []; keyword.value = ''; }, 200);