duanchangpeng hace 5 años
padre
commit
f89eaf5f13
Se han modificado 2 ficheros con 10 adiciones y 3 borrados
  1. 2 2
      tv/src/Global.js
  2. 8 1
      tv/src/views/Index.vue

+ 2 - 2
tv/src/Global.js

@@ -8,9 +8,9 @@ companyInfo = {
 // 当前版本   演示版
 // runVersion = 'test';
 // 户外版本
-// runVersion = 'outDoor';
+runVersion = 'outDoor';
 // normal
-runVersion = 'normal';
+// runVersion = 'normal';
 
 // headapi = process.env.NODE_ENV === 'development' ? '/api/' : '../';
 // headapi = 'http://192.168.0.110:8080/';//从郑伟那里获得数据源

+ 8 - 1
tv/src/views/Index.vue

@@ -112,7 +112,14 @@ export default {
               console.log(223);
               // 正式版
               //开启自动升级
-              that.checkUpdate();
+              // 教室版本自动升级,户外版禁用自动升级
+              if(runVersion == 'outDoor'){
+                console.log('户外版禁用自动升级');
+                return false
+              }else{
+                that.checkUpdate();
+              }
+
             }
           },
           fail: function (e) {