소스 검색

不缓存

lilei 3 년 전
부모
커밋
634ec93242
2개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 3
      src/background.js
  2. 1 1
      vue.config.js

+ 4 - 3
src/background.js

@@ -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.

+ 1 - 1
vue.config.js

@@ -28,7 +28,7 @@ module.exports = {
                   icon: './public/iscm.png'
               },
 			  // productName: '箭冠运营中心系统',
-			  productName: 'iSCM-练习环境',
+			  productName: 'iSCM-预发布环境',
 			  // productName: '箭冠系统本地开发版',
 			  nsis: {
 				  "oneClick": false, // 一键安装