From da58d3c73eb6275a7ec5f97a121f9c77e09fe370 Mon Sep 17 00:00:00 2001 From: chenjunyi <314298729@qq.com> Date: Mon, 9 Feb 2026 15:41:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=BA=8F=E5=8F=B7=E3=80=81=E6=B5=8B=E8=AF=84?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E7=BB=9F=E8=AE=A1=E3=80=81=E5=AF=8C=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E6=B8=B2=E6=9F=93word=E5=AD=97=E7=AC=A6=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Influence/EffectModal/index.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/cdTMP/src/layout/components/Influence/EffectModal/index.vue b/cdTMP/src/layout/components/Influence/EffectModal/index.vue index bdbdeee..9ed8321 100644 --- a/cdTMP/src/layout/components/Influence/EffectModal/index.vue +++ b/cdTMP/src/layout/components/Influence/EffectModal/index.vue @@ -119,7 +119,8 @@ const handleOk = async () => { } const handleCloseEnd = async () => { - datas.value.forEach((item) => { + // Iterator Helper + datas.value.values().forEach((item) => { // 安全地检查并重置 change_des if (item && typeof item === "object" && "change_des" in item) { item.change_des = "" @@ -148,11 +149,14 @@ const open = async () => { // 获取影响域分析数据 const res2 = await roundApi.getInfluence(route.query.id, nodeData?.key) if (res2.code !== 25002) { - // 有影响域分析 - datas.value = res2.data.map((item: any) => ({ - ...item, - id: item.id || `loaded_${Date.now()}_${Math.random().toString(36).substr(2, 9)}` - })) + // 有影响域分析 - 注意使用了Iterator Helper,老版本浏览器可能会不支持 + datas.value = res2.data + .values() + .map((item: any) => ({ + ...item, + id: item.id || `loaded_${Date.now()}_${Math.random().toString(36).substring(2, 9)}` + })) + .toArray() } else { Message.info("暂未填写影响域分析,请填写") }