|
|
@@ -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({
|