From a64e1f9f115537a7afcedeee3d4d9ddbd9613064 Mon Sep 17 00:00:00 2001 From: Wangjiahao <1522128093@qq.com> Date: Tue, 30 May 2023 18:19:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=BB=AA=E8=A1=A8=E6=9D=BF=E8=81=94=E5=8A=A8=E5=90=8E?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E6=B8=85=E9=99=A4=E8=81=94=E5=8A=A8=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E6=89=8D=E8=83=BD=E8=BF=9B=E8=A1=8C=E4=B8=8B=E6=AC=A1?= =?UTF-8?q?=E8=81=94=E5=8A=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/utils/conditionUtil.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/utils/conditionUtil.js b/frontend/src/utils/conditionUtil.js index 0f1322f2ab..56a91e9b68 100644 --- a/frontend/src/utils/conditionUtil.js +++ b/frontend/src/utils/conditionUtil.js @@ -17,8 +17,8 @@ export const isChange = (conditions1, conditions2) => { let arr1 = JSON.parse(JSON.stringify(conditions1)) let arr2 = JSON.parse(JSON.stringify(conditions2)) const strCodeAt = (str) => str[0].charCodeAt() - arr1 = arr1.sort((s1, s2) => strCodeAt(s1.componentId.trim() || s1.filedId) - strCodeAt(s2.componentId.trim() || s2.filedId)) - arr2 = arr2.sort((s1, s2) => strCodeAt(s1.componentId.trim() || s1.filedId) - strCodeAt(s2.componentId.trim() || s2.filedId)) + arr1 = arr1.sort((s1, s2) => strCodeAt(s1.componentId.trim() || s1.fieldId) - strCodeAt(s2.componentId.trim() || s2.fieldId)) + arr2 = arr2.sort((s1, s2) => strCodeAt(s1.componentId.trim() || s1.fieldId) - strCodeAt(s2.componentId.trim() || s2.fieldId)) return JSON.stringify(arr1) !== JSON.stringify(arr2) }