umbrella22

emm一些。。奇怪的错误

......@@ -5,11 +5,10 @@ import { DllFolder } from '@config/index'
var __static: string
var __lib: string
if (process.env.NODE_ENV !== 'development') {
__static = join(__dirname, '/static').replace(/\\/g, '\\\\');
__static = join(__dirname, '/static').replace(/\\/g, '\\\\')
__lib = join(__dirname, '..', '..', '..', '..', `${DllFolder}`).replace(/\\/g, '\\\\')
}
export const winURL = process.env.NODE_ENV === 'development' ? `http://localhost:${process.env.PORT}` : `file://${__dirname}/index.html`
export const loadingURL = process.env.NODE_ENV === 'development' ? `http://localhost:${process.env.PORT}/static/loader.html` : `file://${__static}/loader.html`
export const lib = __lib
......
'use strict'
import { app } from 'electron'
import initWindow from './services/windowManager'
import InitWindow from './services/windowManager'
import DisableButton from './config/DisableButton'
import electronDevtoolsInstaller, { VUEJS_DEVTOOLS } from 'electron-devtools-installer'
function onAppReady() {
new initWindow().initWindow()
function onAppReady () {
new InitWindow().initWindow()
DisableButton.Disablef12()
if (process.env.NODE_ENV === 'development') {
electronDevtoolsInstaller(VUEJS_DEVTOOLS)
......@@ -17,7 +17,7 @@ function onAppReady() {
app.isReady() ? onAppReady() : app.on('ready', onAppReady)
// 由于9.x版本问题,需要加入该配置关闭跨域问题
app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors');
app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors')
app.on('window-all-closed', () => {
// 所有平台均为所有窗口关闭就退出软件
......
......@@ -3,7 +3,7 @@ import Server from '../server'
import { winURL } from '../config/StaticPath'
export default {
Mainfunc(mainWindow: BrowserWindow, IsUseSysTitle: Boolean) {
Mainfunc (mainWindow: BrowserWindow, IsUseSysTitle: Boolean) {
ipcMain.handle('IsUseSysTitle', async () => {
return IsUseSysTitle
})
......