版本更新跳转

This commit is contained in:
2020-08-25 12:21:26 +08:00
parent b63a84149e
commit ffa18c92d2
3 changed files with 7 additions and 6 deletions

View File

@@ -23,8 +23,6 @@
},
onLoad(option) {
this.is_focus_upgrade = option.status == 1 ? false : true;
// type manual 从检查更新页面过来 auto 从app过来
this.isAutoUpdate = option.type == 'manual' ? false : true;
},
onReady() {
this.show = true;
@@ -48,7 +46,9 @@
// #endif
},
closeModal() {
if(isAutoUpdate) {
const pages = getCurrentPages();
// console.log(pages);
if(pages.length == 2) {
this.$u.route('/pageA/login/login');
} else {
uni.navigateBack();

View File

@@ -50,7 +50,6 @@ export default {
updateVersion() {
this.$u.route('/pageE/setting/updateVersion', {
status: this.status,
type: 'manual',
});
}
}