mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-26 15:21:57 +08:00
登录学员后检测部门逻辑优化
This commit is contained in:
@@ -43,7 +43,6 @@
|
||||
box-sizing: border-box;
|
||||
padding-top: 30px;
|
||||
margin-top: 60px;
|
||||
animation: scaleBig 0.3s;
|
||||
.video-title {
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
|
||||
@@ -15,6 +15,8 @@ interface Props {
|
||||
}
|
||||
|
||||
export const InitPage = (props: Props) => {
|
||||
const pathname = useLocation().pathname;
|
||||
const params = useParams();
|
||||
const dispatch = useDispatch();
|
||||
if (props.loginData) {
|
||||
dispatch(loginAction(props.loginData));
|
||||
@@ -43,9 +45,6 @@ export const InitPage = (props: Props) => {
|
||||
dispatch(saveConfigAction(config));
|
||||
}
|
||||
|
||||
const pathname = useLocation().pathname;
|
||||
const params = useParams();
|
||||
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user