优化列表保存性能

This commit is contained in:
lyswhut
2022-08-06 18:20:58 +08:00
parent 2f47f82b0f
commit ca3188c930
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -23,6 +23,7 @@ const handleSaveList = ({ defaultList, loveList, userList, tempList }) => {
getStore('playList').set(data)
}
mainOn(ipcMainWindowNames.save_playlist, (event, { type, data }) => {
data = JSON.parse(data)
switch (type) {
case 'myList':
handleSaveList(data)