From a9877004f436bb9f53173c1692de345726e0e521 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期五, 20 十二月 2024 17:52:52 +0800 Subject: [PATCH] 优化(题干加东西) --- assets/js/middleGround/tool.js | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/js/middleGround/tool.js b/assets/js/middleGround/tool.js index 890f81b..f7f7370 100644 --- a/assets/js/middleGround/tool.js +++ b/assets/js/middleGround/tool.js @@ -151,6 +151,7 @@ // 澶勭悊璇︽儏鏌ヨ缁撴灉 export function handleDetailQueryRequestData({ + productId, item, fields, path, @@ -258,11 +259,11 @@ } } if (subItem.productLinkInfo && subItem.productLinkInfo.length) { - let itemProductLinkInfo = subItem.productLinkInfo.find(citem => citem.Name == item.datas.Name) + let itemProductLinkInfo = subItem.productLinkInfo.find(citem => citem.ProductId == productId) subItem.productLinkPath = - itemProductLinkInfo.LinkPath + + itemProductLinkInfo?.LinkPath + "\\" + - itemProductLinkInfo.CmsItemId; + itemProductLinkInfo?.CmsItemId; } if (subItem.linkInfo && subItem.linkInfo.length) subItem.linkPath = -- Gitblit v1.9.1