commit | 33a0d33d4457de0d57445df8df61c6dfa006aa25 | [log] [tgz] |
---|---|---|
author | 阳菜,放晴! <18234077228@163.com> | Sun Jun 08 22:39:42 2025 +0800 |
committer | 阳菜,放晴! <18234077228@163.com> | Sun Jun 08 22:39:42 2025 +0800 |
tree | f28cf25748e5a1753cf4765742c18ede37fad14a | |
parent | 292794cd66d0a14690367b2887cc837f0f89d29d [diff] [blame] |
搜索实现 Change-Id: Ief2239e82cf46c8f05b3ded20708613ab6dcb1d3
diff --git a/src/views/frame/frame.tsx b/src/views/frame/frame.tsx index ba17996..0f96e8d 100644 --- a/src/views/frame/frame.tsx +++ b/src/views/frame/frame.tsx
@@ -42,6 +42,7 @@ // ✅ 用于跳转 const handleSearch = (e: React.KeyboardEvent<HTMLInputElement>) => { + console.log(e.key); if (e.key === "Enter" && searchText.trim() !== "") { navigate(`/search?keyword=${encodeURIComponent(searchText.trim())}`); }