소스 검색

修复版本号获取错误问题

duanchangpeng 5 년 전
부모
커밋
8f3b223934
2개의 변경된 파일4개의 추가작업 그리고 10개의 파일을 삭제
  1. 0 0
      hbuild/GoAllOutTv/GoAllOutTv/index.html
  2. 4 10
      tv/src/views/Index.vue

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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({

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.