From f679ac0947417416900ab28308dd3bf235336078 Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期一, 02 三月 2026 13:00:57 +0800
Subject: [PATCH] 描述修改
---
rsf-admin/src/layout/index.jsx | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/rsf-admin/src/layout/index.jsx b/rsf-admin/src/layout/index.jsx
index 2298066..e095920 100644
--- a/rsf-admin/src/layout/index.jsx
+++ b/rsf-admin/src/layout/index.jsx
@@ -1,4 +1,5 @@
import { createPortal } from 'react-dom';
+import { useLocation } from 'react-router-dom';
import { Layout as RALayout, CheckForApplicationUpdate, useSidebarState } from "react-admin";
import AppBar from './AppBar';
import { MyMenu } from './MyMenu';
@@ -6,10 +7,23 @@
import { Box } from '@mui/material';
import { TabDialogStateProvider } from '@/context/TabDialogStateContext';
+/** RCS娴嬭瘯鐙珛椤佃矾鐢憋細涓嶆樉绀轰晶杈规爮鍜屾爣绛炬爮锛屾暣椤靛彧鏄剧ずRCS娴嬭瘯鍐呭 */
+const RCS_TEST_STANDALONE_PATH = '/rcsTest-page';
+
const LayoutContent = ({ children }) => {
+ const location = useLocation();
const [sidebarIsOpen] = useSidebarState();
const sidebarWidth = sidebarIsOpen ? 200 : 50;
+ if (location.pathname === RCS_TEST_STANDALONE_PATH) {
+ return (
+ <Box sx={{ width: '100%', height: '100vh', overflow: 'hidden' }}>
+ {children}
+ <CheckForApplicationUpdate />
+ </Box>
+ );
+ }
+
const tabsBarEl = (
<Box sx={{
position: 'fixed',
--
Gitblit v1.9.1