From 8d4e08cae809eddaecaefd3cd21b2c65ee8af160 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 19 九月 2024 14:44:42 +0800 Subject: [PATCH] bug修改 --- assets/js/middleGround/tool.js | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/assets/js/middleGround/tool.js b/assets/js/middleGround/tool.js index c9601b7..890f81b 100644 --- a/assets/js/middleGround/tool.js +++ b/assets/js/middleGround/tool.js @@ -257,11 +257,13 @@ } } } - if (subItem.productLinkInfo && subItem.productLinkInfo.length) + if (subItem.productLinkInfo && subItem.productLinkInfo.length) { + let itemProductLinkInfo = subItem.productLinkInfo.find(citem => citem.Name == item.datas.Name) subItem.productLinkPath = - subItem.productLinkInfo[0].LinkPath + - "\\" + - subItem.productLinkInfo[0].CmsItemId; + itemProductLinkInfo.LinkPath + + "\\" + + itemProductLinkInfo.CmsItemId; + } if (subItem.linkInfo && subItem.linkInfo.length) subItem.linkPath = subItem.linkInfo[0].LinkPath + "\\" + subItem.linkInfo[0].CmsItemId; -- Gitblit v1.9.1