mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-07-17 08:17:30 +08:00
feat: 逐字歌词
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user