mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-05-12 23:53:02 +08:00
feat: add aggregate search result
This commit is contained in:
@@ -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
|
||||
)}`;
|
||||
}
|
||||
};
|
||||
|
||||
// 处理上一集
|
||||
|
||||
Reference in New Issue
Block a user