This commit is contained in:
ditiqi 2025-02-27 12:21:41 +08:00
parent 57caccdfd4
commit e8df9c4cdd
1 changed files with 3 additions and 2 deletions

View File

@ -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: "我的路径" },
]; ];
} }