|
|
@@ -56,13 +56,19 @@ export const MainLayout = () => {
|
|
|
id: 'training',
|
|
|
label: '训练模式',
|
|
|
icon: <Heart className="w-5 h-5" />,
|
|
|
- onClick: () => navigate('/mobile/xunlian')
|
|
|
+ onClick: () => {
|
|
|
+ navigate('/mobile/xunlian');
|
|
|
+ setSidebarOpen(false);
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
id: 'video-replay',
|
|
|
label: '视频回放',
|
|
|
icon: <Video className="w-5 h-5" />,
|
|
|
- onClick: () => navigate('/mobile/video-replay')
|
|
|
+ onClick: () => {
|
|
|
+ navigate('/mobile/video-replay');
|
|
|
+ setSidebarOpen(false);
|
|
|
+ }
|
|
|
}
|
|
|
];
|
|
|
|