duanchangpeng преди 5 години
родител
ревизия
92523b3535
променени са 2 файла, в които са добавени 7 реда и са изтрити 8 реда
  1. 1 0
      .gitignore
  2. 6 8
      tv/src/views/Index.vue

+ 1 - 0
.gitignore

@@ -16,3 +16,4 @@ package-lock.json
 /hbuild/GoAllOutTv/build/
 /hbuild/GoAllOutTv/GoAllOutTv/
 /hbuild/GoAllOutTv/build/
+/hbuild/GoAllOutTv/

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

@@ -62,12 +62,10 @@
                 let netVersion = "";
                 let postdata = qs.stringify(param);
                 const h = this.$createElement;
-                // getCheckUpdate(postdata).then(res => {
-                //     let json = res;
-                //     if (json.Code == 0) {
-
-                // if (that.curVersion != netVersion) {
-                if (1 == 1) {
+                getCheckUpdate(postdata).then(res => {
+                    let json = res;
+                    if (json.Code == 0) {
+                if (that.curVersion != netVersion) {
                     let url = "http://192.168.0.162/flyLong/hbuild/upload//GoAllOut_1.0.1.wgt";
                     that.downWgt(url);
                     that.$notify({
@@ -75,8 +73,8 @@
                         message: h('i', {style: 'color: teal'}, '检测到新的版本,正在下载最新版本')
                     });
                 }
-                //     }
-                // })
+                    }
+                })
             },
             downWgt(url) {
                 let that = this;