mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-07-30 11:17:29 +08:00
✨ feat: 优化歌词体验
This commit is contained in:
@@ -133,7 +133,7 @@ export const getLrcTimeRange = (index: any) => {
|
||||
return { currentTime, nextTime };
|
||||
};
|
||||
|
||||
export const sendLyricToWin = (isPlay: boolean) => {
|
||||
export const sendLyricToWin = (isPlay: boolean = true) => {
|
||||
try {
|
||||
// 设置lyricWinData 获取 当前播放的两句歌词 和歌词时间
|
||||
let lyricWinData = null;
|
||||
@@ -166,4 +166,5 @@ export const sendLyricToWin = (isPlay: boolean) => {
|
||||
export const openLyric = () => {
|
||||
const windowData = window as any;
|
||||
windowData.electronAPI.openLyric();
|
||||
sendLyricToWin();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user