|
@@ -16,6 +16,11 @@ async function createWindow() {
|
|
|
width: 800,
|
|
|
height: 600,
|
|
|
darkTheme: true,
|
|
|
+ minWidth: 710,
|
|
|
+ minHeight: 500,
|
|
|
+ show: false, // 先隐藏
|
|
|
+ backgroundColor: '#211f1d',
|
|
|
+ skipTaskbar:true,
|
|
|
webPreferences: {
|
|
|
webSecurity: false,
|
|
|
enableRemoteModule: true,
|
|
@@ -44,6 +49,9 @@ async function createWindow() {
|
|
|
// win.loadURL('https://iscm.360arrow.com/')
|
|
|
// 开发地址
|
|
|
// win.loadURL('http://localhost:8000/')
|
|
|
+ win.on('ready-to-show', function () {
|
|
|
+ win.show() // 初始化后再显示
|
|
|
+ })
|
|
|
}
|
|
|
// 在开发环境和生产环境均可通过快捷键打开devTools
|
|
|
globalShortcut.register('CommandOrControl+Shift+i', function () {
|