判断版本号

This commit is contained in:
duan
2025-01-20 10:44:47 +08:00
parent 1674a62fec
commit 8674f1974d

View File

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