@@ -815,7 +815,7 @@ export default {
815815 async importSetting (path ) {
816816 let settingData
817817 try {
818- settingData = JSON . parse ( await readLxConfigFile (path) )
818+ settingData = await readLxConfigFile (path)
819819 } catch (error) {
820820 return
821821 }
@@ -830,12 +830,12 @@ export default {
830830 type: ' setting' ,
831831 data: Object .assign ({ version: this .settingVersion }, this .setting ),
832832 }
833- saveLxConfigFile (path, JSON . stringify ( data) )
833+ saveLxConfigFile (path, data)
834834 },
835835 async importPlayList (path ) {
836836 let listData
837837 try {
838- listData = JSON . parse ( await readLxConfigFile (path) )
838+ listData = await readLxConfigFile (path)
839839 } catch (error) {
840840 return
841841 }
@@ -867,12 +867,12 @@ export default {
867867 if (item .otherSource ) delete item .otherSource
868868 }
869869 }
870- saveLxConfigFile (path, JSON . stringify ( data) )
870+ saveLxConfigFile (path, data)
871871 },
872872 async importAllData (path ) {
873873 let allData
874874 try {
875- allData = JSON . parse ( await readLxConfigFile (path) )
875+ allData = await readLxConfigFile (path)
876876 } catch (error) {
877877 return
878878 }
@@ -906,7 +906,7 @@ export default {
906906 if (item .otherSource ) delete item .otherSource
907907 }
908908 }
909- saveLxConfigFile (path, JSON . stringify ( allData) )
909+ saveLxConfigFile (path, allData)
910910 },
911911 handleImportAllData () {
912912 selectDir ({
0 commit comments