✨Feat: 监听关闭事件

This commit is contained in:
2025-10-30 08:41:34 +08:00
parent a9d982bb30
commit 9ab9b380de
+4
View File
@@ -12,3 +12,7 @@ const createWindow = () => {
app.whenReady().then(() => {
createWindow();
});
app.on("window-all-closed", () => {
if (process.platform !== "darwin") app.quit();
});