electron-关闭之前,弹出提示窗 tips:写的时候,如果不在弹窗之前调用一次阻止默认事件,窗口就会直接关闭; 对话框dialog 在主进程中调用,const {dialog} = require('electron'); 传送门:electron dialog对话框