electron + vuecli 搭建的项目 ,使用window.localStorage, 杀掉应用再打开,会清空, 记录用户登录信息有什么好办法? 使用electron-store Uncaught Error: Electron Store: You need to call .initRenderer()
from the main process. 求解答
electron + vuecli 搭建的项目 ,使用window.localStorage, 杀掉应用再打开,会清空, 记录用户登录信息有什么好办法? 使用electron-store Uncaught Error: Electron Store: You need to call .initRenderer()
from the main process. 求解答
6 回答5.5k 阅读✓ 已解决
9 回答9.6k 阅读
5 回答3.8k 阅读✓ 已解决
3 回答10.6k 阅读✓ 已解决
4 回答8.2k 阅读✓ 已解决
7 回答10.2k 阅读
4 回答7.6k 阅读
electron-store initrenderer
简单来说数据是在 main process 进行存储,在 renderer process 的使用都是通过 ipc 通信控制 main process 的操作,所以需要想在 main process 执行
initRenderer
进行初始化。