From e5f45ec9c2eabaa3e4241caad2d49c3629eaf0c8 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期一, 30 九月 2024 14:18:40 +0800
Subject: [PATCH] loading

---
 assets/js/middleGround/tool.js |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/assets/js/middleGround/tool.js b/assets/js/middleGround/tool.js
index dd46872..ecbcd87 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;
@@ -287,7 +289,7 @@
       md5: linkItem.Md5,
       icon: linkItem.Icon,
       size: linkItem.Size,
-      metaData: JSON.parse(linkItem.MetaData ?? "{}"),
+      // metaData: JSON.parse(linkItem.MetaData ?? "{}"),
       order: linkItem.Order,
       protectType: linkItem.ProtectType,
     };

--
Gitblit v1.9.1