fix(components): Fix the issue of search box popping up repeatedly due to carriage return (#468)

This commit is contained in:
青菜白玉汤 2024-06-02 00:41:00 +08:00 committed by GitHub
parent 8efdb10d86
commit 5bd96b8dd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);