头部搜索定位到搜索列表

This commit is contained in:
付民康
2025-03-19 12:46:46 +08:00
parent 96dc1240ec
commit 8f99b673db
2 changed files with 14 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ const search = () => {
document.querySelector('#golbalSearch').blur();
return;
}
router.push({ name: 'Search', query: { val: searchStr.value || '', type: route?.query?.type || 'License' }});
router.push({ name: 'Search', query: { searchWord: searchStr.value || '', type: route?.query?.type || 'software' }});
};
const handleClear = () => {
router.push({ name: 'home' });