diff --git a/lib/tray.js b/lib/tray.js index ab3d1b6..eeb9a64 100644 --- a/lib/tray.js +++ b/lib/tray.js @@ -167,6 +167,14 @@ 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/?a=lum&m=input&d=flow&num=jiaban&show=we`) + mainwin.MainWindow.show(); + }, + }, { + type: "separator" + }, { label: "仅查看未完成", type: "checkbox", checked: libdata.GetConfig().TaskType == "wwc",