forked from Gitlink/forgeplus-react
去掉实名认证(educoder)
This commit is contained in:
parent
0fa7bdf5d0
commit
bb63e9d16b
File diff suppressed because it is too large
Load Diff
|
@ -241,15 +241,15 @@ const competitionDetails: FC<PageProps> = ({
|
|||
}
|
||||
|
||||
|
||||
if (HeaderDetail?.is_authentication && !user?.userInfo?.authentication) {
|
||||
dispatch({
|
||||
type: 'shixunsDetail/setActionTabs',
|
||||
payload: {
|
||||
key: 'Banner-Auth',
|
||||
},
|
||||
})
|
||||
return
|
||||
}
|
||||
// if (HeaderDetail?.is_authentication && !user?.userInfo?.authentication) {
|
||||
// dispatch({
|
||||
// type: 'shixunsDetail/setActionTabs',
|
||||
// payload: {
|
||||
// key: 'Banner-Auth',
|
||||
// },
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
if (HeaderDetail?.enroll_url) {
|
||||
openNewWindow(HeaderDetail?.enroll_url);
|
||||
return
|
||||
|
|
|
@ -134,15 +134,15 @@ const competitionsIndexPage: FC<PageProps> = ({
|
|||
if (!handleVerify(dispatch)) {
|
||||
return;
|
||||
}
|
||||
if (item?.is_authentication && !user?.userInfo?.authentication) {
|
||||
dispatch({
|
||||
type: 'shixunsDetail/setActionTabs',
|
||||
payload: {
|
||||
key: 'Banner-Auth',
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
// if (item?.is_authentication && !user?.userInfo?.authentication) {
|
||||
// dispatch({
|
||||
// type: 'shixunsDetail/setActionTabs',
|
||||
// payload: {
|
||||
// key: 'Banner-Auth',
|
||||
// },
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
if (url === 'ismodel') {
|
||||
if (item.member_of_course === true) {
|
||||
openNewWindow(`/classrooms/${item.course_id}`);
|
||||
|
|
Loading…
Reference in New Issue