From 55949f95a609733d1771d5b017d679cd7d1f005d Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期五, 20 十二月 2024 17:33:17 +0800 Subject: [PATCH] 题库加入购物车优化 --- assets/js/middleGround/tool.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/assets/js/middleGround/tool.js b/assets/js/middleGround/tool.js index ecbcd87..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,7 +259,7 @@ } } 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 + "\\" + -- Gitblit v1.9.1