Skip to content

Commit be59892

Browse files
author
Taois
committed
feat:正确进入详情页面
1 parent 56dc53e commit be59892

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

dashboard/src/views/SearchAggregation.vue

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,23 @@ export default defineComponent({
688688
// 记录最后点击的视频
689689
visitedStore.setLastClicked(video.vod_id, video.name);
690690
691-
// 跳转到视频详情页面
691+
// 获取当前源信息
692692
const currentSource = searchSources.value.find(s => s.key === activeSource.value);
693+
694+
console.log('🎬 [搜索聚合] 点击视频跳转详情页:', {
695+
videoName: video.name,
696+
videoId: video.vod_id,
697+
activeSource: activeSource.value,
698+
currentSource: currentSource,
699+
sourceInfo: {
700+
key: currentSource?.key,
701+
name: currentSource?.name,
702+
api: currentSource?.api,
703+
ext: currentSource?.ext
704+
}
705+
});
706+
707+
// 跳转到视频详情页面
693708
if (currentSource) {
694709
router.push({
695710
name: 'VideoDetail',
@@ -704,9 +719,11 @@ export default defineComponent({
704719
content: video.content,
705720
actor: video.actor,
706721
director: video.director,
707-
site: currentSource.key,
708-
api: currentSource.api,
709-
ext: currentSource.ext,
722+
tempSiteKey: currentSource.key,
723+
tempSiteApi: currentSource.api,
724+
tempSiteName: currentSource.name,
725+
tempSiteExt: currentSource.ext,
726+
fromSpecialAction: 'true',
710727
from: 'search-aggregation',
711728
// 添加来源图片信息,用于详情页图片备用
712729
sourcePic: video.pic

0 commit comments

Comments
 (0)