mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 19:52:10 +08:00
热更
This commit is contained in:
@@ -13,6 +13,12 @@ module.exports = {
|
||||
* 安装
|
||||
*/
|
||||
install (eeApp) {
|
||||
// 开发环境,代码热更新开启时,会导致托盘中有残影
|
||||
// 目前没有找到合适的解决方案
|
||||
// 启用热更新功能时,不加载该模块
|
||||
// 如果调试该模式,请使用dev模式
|
||||
if (process.env.EE_SERVER_ENV == 'local' && process.env.HOT_RELOAD) return;
|
||||
|
||||
eeApp.logger.info('[preload] load tray module');
|
||||
const trayConfig = eeApp.config.tray;
|
||||
const mainWindow = eeApp.electron.mainWindow;
|
||||
|
||||
Reference in New Issue
Block a user