序启动时对数据文件做读取校验,数据出现损坏时自动备份损坏的数据

This commit is contained in:
lyswhut
2021-03-14 02:06:35 +08:00
parent b1ccdeb0d3
commit 8171fcd346
5 changed files with 13 additions and 8 deletions
+3 -2
View File
@@ -123,9 +123,10 @@ exports.mergeSetting = (setting, version) => {
/**
* 初始化设置
* @param {*} setting
* @param {*} isShowErrorAlert
*/
exports.initSetting = () => {
const electronStore_list = getStore('playList')
exports.initSetting = isShowErrorAlert => {
const electronStore_list = getStore('playList', true, isShowErrorAlert)
const electronStore_config = getStore('config')
const electronStore_downloadList = getStore('downloadList')