Skip to content

Commit

Permalink
Merge pull request #51 from LOG1997/fix-musiclist
Browse files Browse the repository at this point in the history
Fix:音乐管理界面重置时无法恢复默认音乐列表
  • Loading branch information
LOG1997 authored Jan 10, 2025
2 parents 4649692 + 7c89e3c commit 8e3e4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/globalConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const useGlobalConfig = defineStore('global', {
},
// 重置音乐列表
resetMusicList() {
this.globalConfig.musicList = defaultMusicList as IMusic[]
this.globalConfig.musicList =JSON.parse(JSON.stringify(defaultMusicList)) as IMusic[]
},
// 清空音乐列表
clearMusicList() {
Expand Down

0 comments on commit 8e3e4bd

Please sign in to comment.