1 Star 0 Fork 0

hanxxkk/LAB-data2sql

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.js 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
hanxxkk 提交于 2023-12-10 03:14 . update bjint
const {app, BrowserWindow, ipcMain} = require('electron')
const path = require('node:path')
const createWindow = () => {
let win = new BrowserWindow({
width: 800,
height: 600,
minWidth: 300,
minHeight: 200,
show: false,
title: 'LAB-DATA',
frame: true, // 隐藏默认菜单栏
autoHideMenuBar: true,
icon: 'analytics, metrics, statistics, bar chart png icon.png',
webPreferences: {
nodeIntegration: true,
contextIsolation: false
// preload: path.join(__dirname, 'preload.js')
}
})
win.loadFile('index.html');
win.on('ready-to-show', () => {
win.show();
})
win.on('close', () => {
console.log('index.html close');
win = null
})
win.webContents.on('dom-ready', () => {
console.log('dom ready');
})
win.webContents.on('did-finish-load', () => {
console.log('dom load');
})
}
app.whenReady().then(() => {
// ipcMain.handle('ping', () => 'pong');
createWindow();
})
app.on('window-all-closed', function () {
if (process.platform !== 'darwin') {
console.log('all close');
app.quit();
}
})
app.on('quit', () => {
console.log('quit');
})
app.on('before-quit', () => {
console.log('before quit');
})
app.on('will-quit', () => {
console.log('will quit');
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/hanxxkk/lab-data2sql.git
[email protected]:hanxxkk/lab-data2sql.git
hanxxkk
lab-data2sql
LAB-data2sql
master

搜索帮助