From f6d5e61c6c3060fbba7f91eda0609d10f473ee58 Mon Sep 17 00:00:00 2001 From: 3136352472 <3136352472> Date: Wed, 22 Apr 2020 13:25:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tray.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/tray.js b/lib/tray.js index 384487d..24d95cf 100644 --- a/lib/tray.js +++ b/lib/tray.js @@ -179,6 +179,12 @@ ipcMain.on('put-in-tray', (event) => { tray.popUpContextMenu(Menu.buildFromTemplate(result.concat({ type: "separator" }, { + label: "添加任务", + click: function (menuItem, browserWindow, event) { + mainwin.MainWindow.loadURL(`http://oa.ouxuan.net/index.php?a=lum&m=input&d=flow&num=work&show=we`) + mainwin.MainWindow.show(); + }, + }, { label: "加班申请", click: function (menuItem, browserWindow, event) { mainwin.MainWindow.loadURL(`http://oa.ouxuan.net/?a=lum&m=input&d=flow&num=jiaban&show=we`)