判断版本号

This commit is contained in:
duan 2025-01-20 10:44:47 +08:00
parent 1674a62fec
commit 8674f1974d
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ export const useCommonStore = defineStore("common", {
let resversion = (b.split('.').join('')) * 1
console.log('當前版本-' + appversion, '接口版本-' + resversion, '返回-' + this.isIosExamine, '判斷值-' + this
.isExamines)
if (appversion > resversion) {
if (this.compare(appversion, resversion)) {
// 再審核
this.isExamines = 1
}
@ -94,7 +94,7 @@ export const useCommonStore = defineStore("common", {
},
getters: {
isIosExamine: function() {
isIosExamine: function () {
if (!this.isIos) {
return true
}