持久化设置保存的地址和内容
const Store = require('electron-store')
const settingsStore = new Store({name:'Settings'})
let savedLocation = settingsStore.get('saveFileLocation')
if(savedLocation){
...
}
settingsStore.set('saveFileLocation',savedLocation)
const savedLocation = settingsStore.get('saveFileLocation') || remote.app.getPath('documents')
我是Eric,手机号是13522679763

浙公网安备 33010602011771号