提交 1579e677 authored 作者: 蔡芬's avatar 蔡芬

1

上级 c7cda308
{ {
"name": "feidao", "name": "feidao",
"version": "0.1.7", "version": "0.1.8",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve --mode web", "serve": "vue-cli-service serve --mode web",
......
...@@ -30,6 +30,7 @@ class AppEvents { ...@@ -30,6 +30,7 @@ class AppEvents {
if (process.platform === 'darwin') { if (process.platform === 'darwin') {
return return
} }
app.quit();
// 设置app托盘菜单 / Set the app tray // 设置app托盘菜单 / Set the app tray
// appManager.tray.setToolTip('窗口被关闭了!\nWindow is closed!') // appManager.tray.setToolTip('窗口被关闭了!\nWindow is closed!')
// appManager.tray.displayBalloon({ // appManager.tray.displayBalloon({
...@@ -38,6 +39,15 @@ class AppEvents { ...@@ -38,6 +39,15 @@ class AppEvents {
// noSound: true // noSound: true
// }) // })
}) })
// Quit when all windows are closed.
// app.on("window-all-closed", () => {
// this.windowManager.mainWindow.win = null
// // On macOS it is common for applications and their menu bar
// // to stay active until the user quits explicitly with Cmd + Q
// if (process.platform !== "darwin") {
// app.quit();
// }
// });
} }
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论