摘要: # 1 在桌面软件中,开机自启动是很常见的功能,在electron中也提供了很好的支持,以下是主要代码: //应用是否打包 if (app.isPackaged) { //设置开机启动 app.setLoginItemSettings({ openAtLogin: true }); } //应用是否 阅读全文
posted @ 2021-01-20 09:08 xhznl 阅读(2792) 评论(0) 推荐(0) 编辑