From 2aa0b4e521c1d76534fc476c9dabd80e6bc93ab2 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期四, 24 四月 2025 11:22:10 +0800
Subject: [PATCH] update vite.config.js

---
 src/utils/ruoyi.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/utils/ruoyi.js b/src/utils/ruoyi.js
index 2bc6db0..7aa9ab6 100644
--- a/src/utils/ruoyi.js
+++ b/src/utils/ruoyi.js
@@ -167,6 +167,9 @@
   for (let d of data) {
     let id = d[config.id];
     childrenListMap[id] = d;
+    if (!d[config.childrenList]) {
+      d[config.childrenList] = [];
+    }
   }
 
   for (let d of data) {
@@ -216,7 +219,7 @@
   if (res[res.length - 1] === '/') {
     return res.slice(0, res.length - 1)
   }
-  return res;
+  return res
 }
 
 // 楠岃瘉鏄惁涓篵lob鏍煎紡

--
Gitblit v1.9.3