feat: add aggregate search result

This commit is contained in:
shinya
2025-06-24 13:22:47 +08:00
parent 85cae6dd98
commit 1f2675d80a
4 changed files with 186 additions and 21 deletions

View File

@@ -773,9 +773,16 @@ function PlayPageClient() {
// 处理返回按钮点击
const handleBack = () => {
window.location.href = `/detail?source=${currentSource}&id=${currentId}&title=${encodeURIComponent(
videoTitle
)}`;
const urlParams = new URLSearchParams(window.location.search);
const fromAggregate = urlParams.get('from') === 'aggregate';
if (fromAggregate) {
window.location.href = `/aggregate?q=${encodeURIComponent(videoTitle)}`;
} else {
window.location.href = `/detail?source=${currentSource}&id=${currentId}&title=${encodeURIComponent(
videoTitle
)}`;
}
};
// 处理上一集