diff --git a/electron/main/index.ts b/electron/main/index.ts index d55b408..7ab9721 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -34,6 +34,9 @@ process.env.VITE_PUBLIC = process.env.VITE_DEV_SERVER_URL ? join(process.env.DIST_ELECTRON, "../public") : process.env.DIST; +// 解决透明窗口闪烁 +app.commandLine.appendSwitch("wm-window-animations-disabled"); + // Disable GPU Acceleration for Windows 7 if (release().startsWith("6.1")) app.disableHardwareAcceleration();