Skip to content

Commit aa550f2

Browse files
committed
feat: 添加隐藏子菜单路由
1 parent 158dc7c commit aa550f2

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { redirect } from 'react-router-dom';
2+
3+
const HideChild = () => {
4+
return null;
5+
};
6+
7+
export const handle = {
8+
i18nKey: 'route.function_hide-child',
9+
icon: 'material-symbols:filter-list-off',
10+
order: 2,
11+
title: 'function_hide-child'
12+
};
13+
14+
export const loader = () => {
15+
redirect('one');
16+
};
17+
18+
export default HideChild;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import LookForward from '@/components/LookForward';
2+
3+
const HideChildOne = () => {
4+
return <LookForward />;
5+
};
6+
7+
export const handle = {
8+
activeMenu: 'function_hide-child',
9+
hideInMenu: true,
10+
i18nKey: 'route.function_hide-child_one',
11+
icon: 'material-symbols:filter-list-off',
12+
title: 'function_hide-child_one'
13+
};
14+
15+
export default HideChildOne;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import LookForward from '@/components/LookForward';
2+
3+
const HideChildThree = () => {
4+
return <LookForward />;
5+
};
6+
7+
export const handle = {
8+
activeMenu: 'function_hide-child',
9+
hideInMenu: true,
10+
i18nKey: 'route.function_hide-child_three',
11+
title: 'function_hide-child_three'
12+
};
13+
14+
export default HideChildThree;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import LookForward from '@/components/LookForward';
2+
3+
const HideChildTwo = () => {
4+
return <LookForward />;
5+
};
6+
7+
export const handle = {
8+
activeMenu: 'function_hide-child',
9+
hideInMenu: true,
10+
i18nKey: 'route.function_hide-child_two',
11+
title: 'function_hide-child_two'
12+
};
13+
export default HideChildTwo;

0 commit comments

Comments
 (0)