From d36dba62d8f29a70be2398090b5eaa79de91c37f Mon Sep 17 00:00:00 2001 From: purocean Date: Fri, 9 Aug 2019 09:57:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=20Electron=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=AA=97=E5=8F=A3=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/app.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/app.ts b/app/src/app.ts index 75d3f5f6..8044ca9f 100644 --- a/app/src/app.ts +++ b/app/src/app.ts @@ -11,6 +11,9 @@ const backendPort = 3044 const devFrontendPort = 8066 const getUrl = () => `http://localhost:${isDev ? devFrontendPort : backendPort}` +// 去掉每个窗口默认的菜单 +Menu.setApplicationMenu(null) + // 主窗口 let win: BrowserWindow | null = null // 系统托盘