From 8674f1974d0eb23d92acedc699ea83b762eddf06 Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Mon, 20 Jan 2025 10:44:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/common.js b/store/common.js index b9bb12c..0f51938 100644 --- a/store/common.js +++ b/store/common.js @@ -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 }