音乐播放记录多设备同步。

This commit is contained in:
mtvpls
2026-02-01 17:07:50 +08:00
parent 2ef04bc434
commit 4cb5bc27c6
8 changed files with 647 additions and 2 deletions
+1 -1
View File
@@ -434,7 +434,7 @@ export default function MusicPage() {
const timeRegex = /\[(\d{2}):(\d{2})(?:\.(\d{2,3}))?\]/g;
lines.forEach(line => {
const matches = [...line.matchAll(timeRegex)];
const matches = Array.from(line.matchAll(timeRegex));
if (matches.length > 0) {
// 提取歌词文本(去掉所有时间标签)
const text = line.replace(timeRegex, '').trim();