From ccf9625f4104e7ad4c108859e41b274fb26e5e5e Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Mon, 20 Jan 2025 10:47:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/common.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/store/common.js b/store/common.js index b52e33a..aa2a2e6 100644 --- a/store/common.js +++ b/store/common.js @@ -68,11 +68,9 @@ export const useCommonStore = defineStore("common", { }, setversion(a, b) { // a是當前應用的版本號 b是接口拿的 - let appversion = (a.split('.').join('')) * 1 - let resversion = (b.split('.').join('')) * 1 console.log('當前版本-' + appversion, '接口版本-' + resversion, '返回-' + this.isIosExamine, '判斷值-' + this .isExamines) - if (this.compare(appversion, resversion) == 1) { + if (this.compare(a, b) == 1) { // 再審核 this.isExamines = 1 }