搜索、小助手推荐位

This commit is contained in:
2025-11-18 11:48:01 +08:00
parent 2ce3684711
commit 049b6f2cf3
18 changed files with 1280 additions and 23 deletions

View File

@@ -208,10 +208,10 @@ function handleNavClick(menu: SysMenu) {
}
// 处理搜索
function handleSearch() {
if (searchKeyword.value.trim()) {
// 这里可以跳转到搜索页面或触发搜索功能
router.push(`/search?keyword=${encodeURIComponent(searchKeyword.value.trim())}`);
function handleSearch(keyword: string) {
if (keyword && keyword.trim()) {
// 跳转到搜索页面
router.push(`/search?keyword=${encodeURIComponent(keyword.trim())}`);
}
}