feat: 逐字歌词

This commit is contained in:
alger
2025-10-11 20:23:54 +08:00
parent 4575e4f26d
commit cb2baeadf5
10 changed files with 877 additions and 367 deletions
+3 -2
View File
@@ -90,10 +90,11 @@ export class CacheManager {
musicSources?: string[]
): Promise<void> {
try {
// 深度克隆数据,确保可以被 IndexedDB 存储
await saveData('music_url_cache', {
id,
data: result,
musicSources: musicSources || [],
data: cloneDeep(result),
musicSources: cloneDeep(musicSources || []),
createTime: Date.now()
});
console.log(`缓存音乐URL成功: ${id}`);