From 755697d7d8051497f08a963b7a4df7f29c293c0f Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期五, 30 八月 2024 15:52:23 +0800
Subject: [PATCH] 1

---
 WebTM/views/PublicPage/PowerInformation.html |   15 ++-------------
 WebTM/WebTM.csproj.user                      |    2 +-
 2 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/WebTM/WebTM.csproj.user b/WebTM/WebTM.csproj.user
index 005e8c8..e39639b 100644
--- a/WebTM/WebTM.csproj.user
+++ b/WebTM/WebTM.csproj.user
@@ -3,7 +3,7 @@
   <PropertyGroup>
     <NameOfLastUsedPublishProfile>D:\鏅轰簯杩堟�漒MES\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
     <ProjectView>ProjectFiles</ProjectView>
-    <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
+    <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
     <UseIISExpress>true</UseIISExpress>
     <Use64BitIISExpress />
     <IISExpressSSLPort />
diff --git a/WebTM/views/PublicPage/PowerInformation.html b/WebTM/views/PublicPage/PowerInformation.html
index 182ea2f..67f2c70 100644
--- a/WebTM/views/PublicPage/PowerInformation.html
+++ b/WebTM/views/PublicPage/PowerInformation.html
@@ -346,20 +346,9 @@
                 } else {
                     treeData.push(it)
                 }
-            })
-            // 閫掑綊杩囨护鎺夋病鏈夊瓙鑺傜偣鐨勯」
-            function filterTree(node) {
-                if (!node.children || node.children.length === 0) {
-                    return null; // 杩囨护鎺夋病鏈夊瓙鑺傜偣鐨勯」
-                }
-                node.children = node.children.map(filterTree).filter(n => n !== null);
-                return node;
-            }
-            // 瀵规瘡涓牴鑺傜偣搴旂敤杩囨护
-            treeData = treeData.map(filterTree).filter(n => n !== null);
+            })                      
             return treeData;
-        }
-
+        }      
     </script>
 
 </body>

--
Gitblit v1.9.1