修改注册登录界面,新增路由保护

Change-Id: I6c665d9e92813506158113fe97c1119d7ad09d92
diff --git a/front/src/SportPage.js b/front/src/SportPage.js
index 4c9d17d..a221c09 100644
--- a/front/src/SportPage.js
+++ b/front/src/SportPage.js
@@ -10,6 +10,7 @@
 import "./App.css";

 import { useNavigate } from "react-router-dom";

 import { API_BASE_URL } from "./config";

+import ForumIcon from "@mui/icons-material/Forum";

 

 const navItems = [

   { label: "电影", icon: <MovieIcon />, path: "/movie" },

@@ -19,6 +20,7 @@
   { label: "游戏", icon: <SportsEsportsIcon />, path: "/game" },

   { label: "体育", icon: <SportsMartialArtsIcon />, path: "/sport" },

   { label: "资料", icon: <PersonIcon />, path: "/info" },

+  { label: "论坛", icon: <ForumIcon />, path: "/forum" },

   { label: "发布", icon: <AccountCircleIcon />, path: "/publish" }, // Added Publish option

 ];