修复在网盘搜索选项卡中点击历史记录搜索的不是网盘资源的bug
This commit is contained in:
@@ -1015,9 +1015,18 @@ function SearchPageClient() {
|
|||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setSearchQuery(item);
|
setSearchQuery(item);
|
||||||
router.push(
|
setShowResults(true);
|
||||||
`/search?q=${encodeURIComponent(item.trim())}`
|
|
||||||
);
|
// 根据当前选项卡执行不同的搜索
|
||||||
|
if (activeTab === 'video') {
|
||||||
|
// 影视搜索
|
||||||
|
router.push(
|
||||||
|
`/search?q=${encodeURIComponent(item.trim())}`
|
||||||
|
);
|
||||||
|
} else if (activeTab === 'pansou') {
|
||||||
|
// 网盘搜索
|
||||||
|
setTriggerPansouSearch(prev => !prev);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
className='px-4 py-2 bg-gray-500/10 hover:bg-gray-300 rounded-full text-sm text-gray-700 transition-colors duration-200 dark:bg-gray-700/50 dark:hover:bg-gray-600 dark:text-gray-300'
|
className='px-4 py-2 bg-gray-500/10 hover:bg-gray-300 rounded-full text-sm text-gray-700 transition-colors duration-200 dark:bg-gray-700/50 dark:hover:bg-gray-600 dark:text-gray-300'
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user