chore: electron-store 传递 name 后影响热更新

This commit is contained in:
草鞋没号 2021-05-28 18:14:42 +08:00
parent fae42f7841
commit 46d0b85170

View File

@ -7,7 +7,10 @@ import Store from 'electron-store'
import './index.css' import './index.css'
console.log('ipcRenderer:', ipcRenderer) console.log('ipcRenderer:', ipcRenderer)
console.log('electron-store', new Store({ name: 'electron-vue' })) // Configuration name causes hot updates to be slow | 传递 name 后会导致热更新很慢
// console.log('electron-store', new Store({ name: 'electron-vue' }))
// https://github.com/caoxiemeihao/electron-vue-vite/issues/10
console.log('electron-store', new Store())
createApp(App) createApp(App)
.mount('#app') .mount('#app')