瀏覽代碼

修复版本号获取错误问题

duanchangpeng 5 年之前
父節點
當前提交
8f3b223934
共有 2 個文件被更改,包括 4 次插入10 次删除
  1. 0 0
      hbuild/GoAllOutTv/GoAllOutTv/index.html
  2. 4 10
      tv/src/views/Index.vue

File diff suppressed because it is too large
+ 0 - 0
hbuild/GoAllOutTv/GoAllOutTv/index.html


+ 4 - 10
tv/src/views/Index.vue

@@ -85,7 +85,6 @@ export default {
             that.getServeIpAddress(e.uuid);
             // 公司测试机用公司版本升级
             if (JSON.stringify(e.uuid) == 'a1f2d679c1624d3a') {
-              console.log(123);
               //首发版本 '1.1.0' 在线版不需要自动升级
               // 内测版自动升级
               let url = 'http://192.168.0.3:19096/v1/Sensors/QueryVueFramework';
@@ -108,9 +107,7 @@ export default {
             } else {
               // 正式版
               //开启自动升级
-              console.log(223);
-              console.log(' localStorage.version' +  localStorage.version);
-              that.checkUpdate( localStorage.version);
+              that.checkUpdate();
             }
           },
           fail: function (e) {
@@ -120,7 +117,7 @@ export default {
       }
     },
     // 是否有新版本
-    checkUpdate(version) {
+    checkUpdate() {
       let that = this;
       let param = {};
       let postdata = qs.stringify(param);
@@ -128,13 +125,10 @@ export default {
       QueryVueFramework(postdata).then(res => {
         let json = res;
         if (json.Code == 0) {
-          console.log('version' + version);
-          console.log('json.Version' + json.VueFramework.Version);
-          if (version != json.VueFramework.Version) {
+          console.log('localStorage.version' + localStorage.version);
+          if (localStorage.version != json.VueFramework.Version) {
             // 正式
             let url = "http://cal.beswell.com:85/v1/Sensors/DownloadVueFramework";
-            // 测试
-            // let url = "http://192.168.0.162/wgt/H5BB8BEB3.wgt";
             this.downWgt(url);
             // that.downWgt(url, json.Version);
             // that.$notify({

Some files were not shown because too many files changed in this diff