|
@@ -5,6 +5,7 @@ import { createProtocol } from 'vue-cli-plugin-electron-builder/lib'
|
|
|
import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer'
|
|
|
import { updateHandle } from './update'
|
|
|
const isDevelopment = process.env.NODE_ENV !== 'production'
|
|
|
+const os = require("os");
|
|
|
|
|
|
if (!isDevelopment) {
|
|
|
global.__static = require("path")
|
|
@@ -92,6 +93,13 @@ const gotTheLock = app.requestSingleInstanceLock()
|
|
|
if (!gotTheLock) {
|
|
|
app.quit()
|
|
|
} else {
|
|
|
+
|
|
|
+ const isWin7 = os.release().startsWith('6.1');
|
|
|
+ if(isWin7) {
|
|
|
+ //win7下 ,关闭硬件加速
|
|
|
+ app.disableHardwareAcceleration();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 兼容https非可信域
|
|
|
*/
|