#
luxiaotao1123
2024-02-01 528d0da19f5fc3f5c78af3c99a1f2cfa914a27dd
zy-asrs-flow/src/pages/Admin.jsx
@@ -19,8 +19,8 @@
import logo from '@/assets/logo.png';
import G6 from './G6';
import { getMenuList } from '@/api/meun';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import Hello from './Hello';
import { Router, Routes, Route, useNavigate } from "react-router-dom";
const SearchInput = () => {
    const { token } = theme.useToken();
@@ -72,23 +72,20 @@
                        name: '列表页面',
                        routes: [
                            {
                                path: '/list/sub-sub-page1',
                                path: '/list/sub-page/sub-sub-page1',
                                name: '一级列表页面',
                                component: './Hello',
                                component: './G6',
                            },
                            {
                                path: '/list/hello',
                                path: '/list/sub-page/hello',
                                name: '你好世界',
                                component: React.lazy(() => import('./Hello')),
                                component: './Hello',
                            },
                        ],
                    },
                ],
            },
        ]
    },
    location: {
        pathname: '/',
    },
}
@@ -235,14 +232,16 @@
                        )}
                        {...settings}
                    >
                        <PageContainer>
                            <Routes>
                                <Route key='/list/sub-page/hello' path='/list/sub-page/hello' element={React.lazy(() => import('./Hello'))} />
                            </Routes>
                            {/* <G6></G6> */}
                        </PageContainer>
                        {/* <PageContainer>
                        <SettingDrawer
                        </PageContainer> */}
                        <Routes>
                            <Route path="/list/sub-page/hello" element={<Hello />} />
                        </Routes>
                        {/* <SettingDrawer
                            pathname={pathname}
                            enableDarkTheme
                            getContainer={(e) => {
@@ -254,7 +253,7 @@
                                setSetting(changeSetting);
                            }}
                            disableUrlParams={false}
                        />
                        /> */}
                    </ProLayout>
                </ConfigProvider>
            </ProConfigProvider>