diff --git a/src/pages/Container/Layout/menuConfig.js b/src/pages/Container/Layout/menuConfig.js index 4d872fc..d3ed421 100644 --- a/src/pages/Container/Layout/menuConfig.js +++ b/src/pages/Container/Layout/menuConfig.js @@ -174,6 +174,18 @@ const menuItems = [ }, ], }, + { + key: "/safetyEval/container/test", + label: "测试", + icon: , + children: [ + { + key: "/safetyEval/container/test/a1", + label: "A1 模块", + icon: , + }, + ], + }, ]; export default menuItems; diff --git a/src/pages/Container/Test/index.js b/src/pages/Container/Test/index.js index c531caa..e204251 100644 --- a/src/pages/Container/Test/index.js +++ b/src/pages/Container/Test/index.js @@ -3,9 +3,13 @@ import { Button, Card, Result, Space, Typography } from "antd"; const { Title, Paragraph, Text } = Typography; -function TestPage() { +function TestPage(props) { const [count, setCount] = React.useState(0); + if (props.children) { + return props.children; + } + return (