From 1da741e8519e13d8f92824bf8ef15b92800b70fc Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@gmail.com>
Date: 星期六, 28 六月 2025 16:27:30 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/layout/MyMenu.jsx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/zy-acs-flow/src/layout/MyMenu.jsx b/zy-acs-flow/src/layout/MyMenu.jsx
index 1add22b..a36567a 100644
--- a/zy-acs-flow/src/layout/MyMenu.jsx
+++ b/zy-acs-flow/src/layout/MyMenu.jsx
@@ -30,7 +30,7 @@
     useEffect(() => {
         // default open sub menu
         const defaultExpandMenu = ["menu.warehouse", "menu.dispatcher", "menu.equipment"];
-        permissions.forEach(item => {
+        permissions?.forEach(item => {
             if (defaultExpandMenu.includes(item.name)) {
                 setState(state => ({ ...state, [item.route]: true }));
             }

--
Gitblit v1.9.1