邓宏 1 year ago
parent
commit
82bc9ca912
  1. 4
      pages/home/login.vue

4
pages/home/login.vue

@ -89,7 +89,7 @@ export default {
loginType:"mobile", loginType:"mobile",
}, },
versionCode:"", versionCode:null,
appDownLoadUrl:"", appDownLoadUrl:"",
isShowModal:false, isShowModal:false,
modalOptions:{ modalOptions:{
@ -143,6 +143,8 @@ export default {
params:{type:1} params:{type:1}
}) })
if(res.statu){ if(res.statu){
console.log(res.data.appVersionCode,'当前运行版本号----')
console.log(res.data.appVersionCode,'最新版本号----')
if(res.data.appVersionCode > this.versionCode){ if(res.data.appVersionCode > this.versionCode){
this.isShowModal=true this.isShowModal=true
this.appDownLoadUrl=host("version",res.data.appDownloadUrl) this.appDownLoadUrl=host("version",res.data.appDownloadUrl)

Loading…
Cancel
Save