Browse Source

配置修改

lilei 3 năm trước cách đây
mục cha
commit
2c230aae81
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      src/background.js

+ 8 - 0
src/background.js

@@ -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 () {