umbrella22

emm一些。。奇怪的错误

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