正常打开第一个窗口之后,再次双击快捷方式,第二个窗口会显示白屏,没有配置文件
如标题描述
预期内的结构,应该要么是双击快捷方式,再次打开第一个窗口,要么就是再新建一个窗口,但是保留记忆中的配置文件
After the first window is opened normally, when you double-click the shortcut again, the second window will display a white screen and there is no configuration file The expected result should be either to double-click the shortcut to open the first window again or to create a new window while retaining the configuration file in memory
确实,基于electron的应用都会有这个问题,localstorage只能一个进程读取,第二个读不到
我也碰到这个问题了,如果第二个进程无法读取配置文件,能否判断下是否已经有正在运行的进程,有的话直接弹窗提示已有一个实例已经在运行。
我也碰到这个问题了,如果第二个进程无法读取配置文件,能否判断下是否已经有正在运行的进程,有的话直接弹窗提示已有一个实例已经在运行。
靠谱,我试试