|
@@ -42,10 +42,10 @@ async function createWindow() {
|
|
|
// win.loadURL('app://./index.html')
|
|
|
// 预发布地址
|
|
|
// win.loadURL('http://p.ocs.360arrow.com/')
|
|
|
- // win.loadURL('http://p.iscm.360arrow.com/')
|
|
|
+ win.loadURL('http://p.iscm.360arrow.com/')
|
|
|
// 练习地址
|
|
|
// win.loadURL('https://t.ocs.360arrow.com/')
|
|
|
- win.loadURL('https://t.qpls.360arrow.com/')
|
|
|
+ // win.loadURL('https://t.qpls.360arrow.com/')
|
|
|
// 生产地址
|
|
|
// win.loadURL('https://ocs.360arrow.com/')
|
|
|
// win.loadURL('https://iscm.360arrow.com/')
|
|
@@ -87,7 +87,8 @@ if (!gotTheLock) {
|
|
|
// dock icon is clicked and there are no other windows open.
|
|
|
if (BrowserWindow.getAllWindows().length === 0) createWindow()
|
|
|
})
|
|
|
-
|
|
|
+ // 禁用缓存
|
|
|
+ app.commandLine.appendSwitch("--disable-http-cache")
|
|
|
// This method will be called when Electron has finished
|
|
|
// initialization and is ready to create browser windows.
|
|
|
// Some APIs can only be used after this event occurs.
|