This commit is contained in:
2022-10-15 16:43:09 +08:00
parent 020537787f
commit 11dc36e3d8

View File

@@ -31,11 +31,22 @@
password: '', password: '',
showPassword: false, showPassword: false,
saveUser: this.$store.getters.loginName ? true : false, saveUser: this.$store.getters.loginName ? true : false,
disabled: false disabled: false,
version: '',
versionCode: ''
} }
}, },
mounted () { created () {
checkUpdate(); //#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: { methods: {
toSaveUser() { toSaveUser() {