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