修改报错

This commit is contained in:
duan
2025-01-20 10:55:55 +08:00
parent c05ee20821
commit ec35f4bfb1
2 changed files with 2 additions and 1 deletions

View File

@@ -159,6 +159,7 @@
//请求后台接口 解析数据 对比版本
selectNewApp().then(res => {
res = res[0];
console.log(uni.getSystemInfoSync().platform == 'ios',1101)
let version;
if (uni.getSystemInfoSync().platform == 'android') {
version = res.version

View File

@@ -68,7 +68,7 @@ export const useCommonStore = defineStore("common", {
},
setversion(a, b) {
// a是當前應用的版本號 b是接口拿的
console.log('當前版本-' + appversion, '接口版本-' + resversion, '返回-' + this.isIosExamine, '判斷值-' + this
console.log('當前版本-' + a, '接口版本-' + b, '返回-' + this.isIosExamine, '判斷值-' + this
.isExamines)
// 再審核
this.isExamines = this.compare(a, b)