fix: avoid danmaku event name collision in session detail replay

Alias the replay player's danmakuEvents to replayDanmakuEvents so it no longer shadows another binding in the session detail view.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 17:52:18 +08:00
co-authored by Claude Opus 4.8
parent df70b64956
commit a062bf84bf
@@ -32,7 +32,7 @@ const router = useRouter();
const { isMobile } = useViewport(); const { isMobile } = useViewport();
// Danmaku replay dialog // Danmaku replay dialog
const { danmakuEvents, loading: danmakuLoading, error: danmakuError, loadTaskDanmaku, clear: clearDanmaku } = useDanmakuPlayer(); const { danmakuEvents: replayDanmakuEvents, loading: danmakuLoading, error: danmakuError, loadTaskDanmaku, clear: clearDanmaku } = useDanmakuPlayer();
const danmakuDialogVisible = ref(false); const danmakuDialogVisible = ref(false);
const danmakuDialogTitle = ref(""); const danmakuDialogTitle = ref("");
const danmakuPreviewUrl = ref(""); const danmakuPreviewUrl = ref("");
@@ -611,7 +611,7 @@ onMounted(loadDetail);
<DanmakuPlayer <DanmakuPlayer
v-else-if="danmakuPreviewUrl" v-else-if="danmakuPreviewUrl"
:video-src="danmakuPreviewUrl" :video-src="danmakuPreviewUrl"
:danmaku-events="danmakuEvents" :danmaku-events="replayDanmakuEvents"
/> />
<div v-else class="preview-empty">无法加载该分片的预览</div> <div v-else class="preview-empty">无法加载该分片的预览</div>
</el-dialog> </el-dialog>