From c61ced8e0a419c507b5a2e4dd4ee2186ff886930 Mon Sep 17 00:00:00 2001 From: gsx <530353222@qq.com> Date: Mon, 23 May 2022 11:35:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AC=E4=BB=B6=E5=8A=A0=E9=80=9F=20?= =?UTF-8?q?=E5=92=8C=20loading=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/config/config.default.js | 7 +++++++ package.json | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/electron/config/config.default.js b/electron/config/config.default.js index d2cc404..e01d6c9 100644 --- a/electron/config/config.default.js +++ b/electron/config/config.default.js @@ -56,6 +56,8 @@ module.exports = (appInfo) => { nodeIntegration: true, }, frame: true, + show: false, + //backgroundColor: '#000000' //titleBarStyle: 'hidden' }; @@ -101,6 +103,11 @@ module.exports = (appInfo) => { port: 7072, // 默认端口(如果端口被使用,则随机获取一个) }; + /** + * 硬件加速 + */ + config.hardGpu = false; + /* 应用自动升级 (可选) */ config.autoUpdate = { windows: false, // windows平台 diff --git a/package.json b/package.json index af734da..a0ac6ae 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ee", - "version": "2.1.3", + "version": "2.1.4", "description": "A fast, desktop software development framework", "main": "main.js", "scripts": { @@ -102,7 +102,7 @@ "license": "Apache", "devDependencies": { "debug": "^4.3.3", - "electron": "^12.2.3", + "electron": "^13.6.9", "electron-builder": "22.10.4", "eslint": "^5.13.0", "eslint-config-egg": "^7.1.0",