From b77e8e776af4d81e748e9e21d51b64a11085a195 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期四, 19 十二月 2024 10:49:11 +0800 Subject: [PATCH] 未提交退出提示 --- assets/js/middleGround/tool.js | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/assets/js/middleGround/tool.js b/assets/js/middleGround/tool.js index c9601b7..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, @@ -257,11 +258,13 @@ } } } - if (subItem.productLinkInfo && subItem.productLinkInfo.length) + if (subItem.productLinkInfo && subItem.productLinkInfo.length) { + let itemProductLinkInfo = subItem.productLinkInfo.find(citem => citem.ProductId == productId) 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