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(); } }, });