From 42af9be6f10127b311b6fca0b3d3781aef103727 Mon Sep 17 00:00:00 2001 From: guoshuang Date: Tue, 22 Feb 2022 15:22:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login/login/index.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/login/login/index.vue b/src/pages/login/login/index.vue index f80c22a..d18a566 100644 --- a/src/pages/login/login/index.vue +++ b/src/pages/login/login/index.vue @@ -154,13 +154,13 @@ export default class LoginPage extends BasePage { Version = '1.0.0'; async update() { await session.QueryVersion(); - if (this.Version == session.Version) { + if (this.Version < session.Version) { // 版本更新提示 uni.showModal({ content: this.$t('message.Tip1') as string, confirmText: this.$t('message.workArea_Confirm') as string, cancelText: this.$t('message.Cancel') as string, - success: function (res) { + success: (res) => { if (res.confirm) { //确定执行下载 let downloadApkUrl = session.url; @@ -182,9 +182,11 @@ export default class LoginPage extends BasePage { } }, }); - } else { + } else if (res.cancel) { //return; - console.log("1111111"); + //debugger; + //console.log("1111111"); + this.go(); } }, });