add
This commit is contained in:
parent
57caccdfd4
commit
e8df9c4cdd
|
@ -14,13 +14,14 @@ export const NavigationMenu = () => {
|
||||||
{ key: "courses", path: "/courses", label: "全部课程" },
|
{ key: "courses", path: "/courses", label: "全部课程" },
|
||||||
{ key: "path", path: "/path", label: "学习路径" },
|
{ key: "path", path: "/path", label: "学习路径" },
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!isAuthenticated) {
|
if (!isAuthenticated) {
|
||||||
return baseItems;
|
return baseItems;
|
||||||
} else {
|
} else {
|
||||||
return [
|
return [
|
||||||
...baseItems,
|
...baseItems,
|
||||||
{ key: "my-duty", path: "/my-duty", label: "我创建的" },
|
{ key: "my-duty", path: "/my-duty", label: "我的授课" },
|
||||||
{ key: "my-learning", path: "/my-learning", label: "我的课表" },
|
{ key: "my-learning", path: "/my-learning", label: "我的课程" },
|
||||||
{ key: "my-path", path: "/my-path", label: "我的路径" },
|
{ key: "my-path", path: "/my-path", label: "我的路径" },
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue