diff --git a/src/electron/menu.js b/src/electron/menu.js index b04213e..2258133 100644 --- a/src/electron/menu.js +++ b/src/electron/menu.js @@ -176,6 +176,13 @@ export function createMenu(win) { await shell.openExternal("https://electronjs.org"); }, }, + { + label: "开发者工具", + accelerator: "F12", + click: () => { + win.webContents.openDevTools(); + }, + }, ], }, ];