From 11dc36e3d890363c883c130d61e1c332bd4c553e Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Sat, 15 Oct 2022 16:43:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/login.vue | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index cb92182..c8e6dfd 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -31,11 +31,22 @@ password: '', showPassword: false, saveUser: this.$store.getters.loginName ? true : false, - disabled: false + disabled: false, + version: '', + versionCode: '' } }, - mounted () { - checkUpdate(); + created () { + //#ifdef APP-PLUS + // 获取本地应用资源版本号 + plus.runtime.getProperty(plus.runtime.appid, (info) => { + this.version = info.version; + this.versionCode = info.versionCode ; + if (Number(this.versionCode) < 102) { + checkUpdate(); + } + }) + //#endif }, methods: { toSaveUser() {