Compare commits

..

2 Commits

Author SHA1 Message Date
huwei 080691d675 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	src/main.js
2026-07-08 18:16:51 +08:00
huwei 1a0af92ecf bug修护 2026-07-08 18:16:24 +08:00
2 changed files with 17 additions and 1 deletions

View File

@ -174,6 +174,18 @@ const menuItems = [
}, },
], ],
}, },
{
key: "/safetyEval/container/test",
label: "测试",
icon: <ExperimentOutlined />,
children: [
{
key: "/safetyEval/container/test/a1",
label: "A1 模块",
icon: <ExperimentOutlined />,
},
],
},
]; ];
export default menuItems; export default menuItems;

View File

@ -3,9 +3,13 @@ import { Button, Card, Result, Space, Typography } from "antd";
const { Title, Paragraph, Text } = Typography; const { Title, Paragraph, Text } = Typography;
function TestPage() { function TestPage(props) {
const [count, setCount] = React.useState(0); const [count, setCount] = React.useState(0);
if (props.children) {
return props.children;
}
return ( return (
<div style={{ padding: 24, maxWidth: 800, margin: "0 auto" }}> <div style={{ padding: 24, maxWidth: 800, margin: "0 auto" }}>
<Card> <Card>