搜索、小助手推荐位
This commit is contained in:
@@ -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())}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user