|
|
@ -402,7 +402,7 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
let courseId;
|
|
|
|
let courseId;
|
|
|
|
let query = this.props.location.pathname;
|
|
|
|
let query = this.props.location.pathname;
|
|
|
|
const type = query.split('/');
|
|
|
|
const type = query.split('/');
|
|
|
|
if (type[1] == 'courses' && type[2]) {
|
|
|
|
if (type[1] == 'classrooms' && type[2]) {
|
|
|
|
courseId = parseInt(type[2])
|
|
|
|
courseId = parseInt(type[2])
|
|
|
|
// url += `?course_id=${courseId}`
|
|
|
|
// url += `?course_id=${courseId}`
|
|
|
|
}
|
|
|
|
}
|
|
|
|