From 7e5973a3061989a976e2c19ef588bb2f34f29cf4 Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期三, 11 二月 2026 10:26:53 +0800
Subject: [PATCH] 下发任务校验

---
 rsf-admin/src/layout/index.jsx |   33 +++++++++++++++++++--------------
 1 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/rsf-admin/src/layout/index.jsx b/rsf-admin/src/layout/index.jsx
index d6ede1f..68e420c 100644
--- a/rsf-admin/src/layout/index.jsx
+++ b/rsf-admin/src/layout/index.jsx
@@ -1,3 +1,4 @@
+import { createPortal } from 'react-dom';
 import { Layout as RALayout, CheckForApplicationUpdate, useSidebarState } from "react-admin";
 import AppBar from './AppBar';
 import { MyMenu } from './MyMenu';
@@ -7,6 +8,23 @@
 const LayoutContent = ({ children }) => {
   const [sidebarIsOpen] = useSidebarState();
   const sidebarWidth = sidebarIsOpen ? 200 : 50;
+
+  const tabsBarEl = (
+    <Box sx={{
+      position: 'fixed',
+      top: 48,
+      left: sidebarWidth + 5,
+      right: 0,
+      zIndex: 1400, // 楂樹簬 Dialog/Modal(1300)锛岄�氳繃 Portal 鎸傚埌 body 鎵嶈兘鐩栦綇寮圭獥
+      transition: (theme) =>
+        theme.transitions.create('left', {
+          easing: theme.transitions.easing.sharp,
+          duration: theme.transitions.duration.leavingScreen,
+        }),
+    }}>
+      <TabsBar />
+    </Box>
+  );
 
   return (
     <RALayout
@@ -28,20 +46,7 @@
         }
       }}
     >
-      <Box sx={{
-        position: 'fixed',
-        top: 48,
-        left: sidebarWidth + 5,
-        right: 0,
-        zIndex: 1350, // 楂樹簬 Dialog(1300)锛岄伩鍏嶈彍鍗曞唴寮圭獥閬洊鏍囩椤�
-        transition: (theme) =>
-          theme.transitions.create('left', {
-            easing: theme.transitions.easing.sharp,
-            duration: theme.transitions.duration.leavingScreen,
-          }),
-      }}>
-        <TabsBar />
-      </Box>
+      {createPortal(tabsBarEl, document.body)}
       {children}
       <CheckForApplicationUpdate />
     </RALayout>

--
Gitblit v1.9.1