refactor: pac修改
parent
26d959dcc0
commit
15ba3e65b5
|
@ -42,7 +42,7 @@ const localApi = {
|
|||
load () {
|
||||
const settingPath = _getSettingsPath()
|
||||
if (!fs.existsSync(settingPath)) {
|
||||
this.save({ overwall: true })
|
||||
this.save({})
|
||||
}
|
||||
const file = fs.readFileSync(settingPath)
|
||||
const setting = JSON5.parse(file.toString())
|
||||
|
@ -50,6 +50,10 @@ const localApi = {
|
|||
setting.installTime = new Date().getTime()
|
||||
this.save(setting)
|
||||
}
|
||||
if (setting && setting.overwall == null) {
|
||||
setting.overwall = true
|
||||
this.save(setting)
|
||||
}
|
||||
return setting || {}
|
||||
},
|
||||
save (setting = {}) {
|
||||
|
|
Loading…
Reference in New Issue