Переглянути джерело

新增客户端顶部导航栏退出应用按钮 关闭应用

master
kim131 4 роки тому
джерело
коміт
4b1d6c1bf6
1 змінених файлів з 6 додано та 0 видалено
  1. +6
    -0
      src/main/index.js

+ 6
- 0
src/main/index.js Переглянути файл

@@ -102,6 +102,12 @@ app.on('second-instance', (event, commandLine, workingDirectory) => {
// code. You can also put them in separate files and require them here.

// 监听必要的自定义事件
/**
* 点击退出应用
*/
ipcMain.handle('close-app', async (event, args) => {
mainWindow.destroy();
});
/**
* 项目中的文件上传
*/


Завантаження…
Відмінити
Зберегти