From 46d0b851703c43e780fb67df2d33140c8255eb60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Fri, 28 May 2021 18:14:42 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20electron-store=20=E4=BC=A0=E9=80=92=20?= =?UTF-8?q?name=20=E5=90=8E=E5=BD=B1=E5=93=8D=E7=83=AD=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/render/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/render/main.ts b/src/render/main.ts index f1eb985..f3d031d 100644 --- a/src/render/main.ts +++ b/src/render/main.ts @@ -7,7 +7,10 @@ import Store from 'electron-store' import './index.css' 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) .mount('#app')