fix(Lyric): 点击歌词跳转进度未应用偏移

This commit is contained in:
MoYingJi
2025-11-13 20:16:55 +08:00
parent 8529663ea5
commit fe0f7a0f25
2 changed files with 4 additions and 2 deletions

View File

@@ -85,7 +85,8 @@ const amLyricsData = computed<LyricLine[]>(() => {
const jumpSeek = (line: any) => {
if (!line?.line?.lyricLine?.startTime) return;
const time = msToS(line.line.lyricLine.startTime);
player.setSeek(time);
const offsetSeconds = statusStore.getSongOffset(musicStore.playSong?.id)
player.setSeek(time - offsetSeconds);
player.play();
};

View File

@@ -276,7 +276,8 @@ const getYrcStyle = (wordData: LyricContentType, lyricIndex: number) => {
const jumpSeek = (time: number) => {
if (!time) return;
lrcMouseStatus.value = false;
player.setSeek(time);
const offsetSeconds = statusStore.getSongOffset(musicStore.playSong?.id)
player.setSeek(time - offsetSeconds);
player.play();
};