|
@@ -32,8 +32,6 @@
|
|
|
},
|
|
|
created: function() {
|
|
|
const that = this;
|
|
|
- // 强制更新
|
|
|
- that.forceUpdate();
|
|
|
that.search()
|
|
|
},
|
|
|
methods: {
|
|
@@ -67,35 +65,6 @@
|
|
|
const that = this;
|
|
|
that.$set(that, `active`, index);
|
|
|
that.$emit('toPath', item)
|
|
|
- },
|
|
|
- // 强制更新
|
|
|
- forceUpdate() {
|
|
|
- // const updateManager = uni.getUpdateManager();
|
|
|
- // updateManager.onCheckForUpdate(function(res) {
|
|
|
- // // 请求完新版本信息的回调
|
|
|
- // console.log(res.hasUpdate);
|
|
|
- // console.log('3');
|
|
|
- // console.log('更新');
|
|
|
- // });
|
|
|
- // updateManager.onUpdateReady(function(res) {
|
|
|
- // uni.showModal({
|
|
|
- // title: '更新提示',
|
|
|
- // content: '新版本已经准备好,是否重启应用?',
|
|
|
- // success(res) {
|
|
|
- // if (res.confirm) {
|
|
|
- // console.log('2');
|
|
|
- // console.log('更新确定');
|
|
|
- // updateManager.applyUpdate();
|
|
|
- // }
|
|
|
- // }
|
|
|
- // });
|
|
|
-
|
|
|
- // });
|
|
|
-
|
|
|
- // updateManager.onUpdateFailed(function(res) {
|
|
|
- // console.log('1');
|
|
|
- // console.log('失败');
|
|
|
- // });
|
|
|
}
|
|
|
}
|
|
|
}
|