- {item.name} + {item.name} {TagInfo(item.priority,"mr10")}
diff --git a/src/forge/SecuritySetting/Index.jsx b/src/forge/SecuritySetting/Index.jsx index d9fa1bfac..4f47b33c3 100644 --- a/src/forge/SecuritySetting/Index.jsx +++ b/src/forge/SecuritySetting/Index.jsx @@ -13,6 +13,7 @@ import { getImageUrl } from 'educoder'; import { Link } from 'react-router-dom'; import './Index.scss'; +import { useEffect } from "react"; const MyNoticeIndex = Loadable({ loader: () => import("./notice/myNotice/Index"), @@ -43,10 +44,15 @@ const PrivateLetter = Loadable({ }); function Index(props){ - const { current_user,mygetHelmetapi } = props; + const { current_user,mygetHelmetapi , checkIfLogin } = props; const { pathname } = props.location; const notice_url = mygetHelmetapi && mygetHelmetapi.common && mygetHelmetapi.common.notice; + useEffect(()=>{ + if(checkIfLogin() === false){ + props.history.push('/login'); + } + },[]) return(