From c05ee208212b8fe62322bb1f2d836c1db415c89f Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Mon, 20 Jan 2025 10:48:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=A1=E6=A0=B8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/common.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/store/common.js b/store/common.js index 4efd46f..92279dc 100644 --- a/store/common.js +++ b/store/common.js @@ -70,12 +70,8 @@ export const useCommonStore = defineStore("common", { // a是當前應用的版本號 b是接口拿的 console.log('當前版本-' + appversion, '接口版本-' + resversion, '返回-' + this.isIosExamine, '判斷值-' + this .isExamines) - if (this.compare(a, b) == 1) { - // 再審核 - this.isExamines = 1 - }else{ - this.isExamines = 0 - } + // 再審核 + this.isExamines = this.compare(a, b) }, // 判断版本号 compare(version1, version2) {