判断版本号
This commit is contained in:
parent
1674a62fec
commit
8674f1974d
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue