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 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
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