|
|
@ -18,11 +18,15 @@ export function RouteHOC(options = {}) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
toCreateProject = () => {
|
|
|
|
toCreateProject = () => {
|
|
|
|
|
|
|
|
let url = '/projects/new'
|
|
|
|
if (window.location.port == 3007) {
|
|
|
|
if (window.location.port == 3007) {
|
|
|
|
window.location.href = '/testbdweb.educoder.net/projects/new'
|
|
|
|
// window.location.href
|
|
|
|
} else {
|
|
|
|
url = '/testbdweb.educoder.net/projects/new'
|
|
|
|
window.location.href = '/projects/new'
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
window.open(
|
|
|
|
|
|
|
|
url,
|
|
|
|
|
|
|
|
'_blank' // <- This is what makes it open in a new window.
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// common_homework group_homework
|
|
|
|
// common_homework group_homework
|
|
|
|
// 是否是分组作业
|
|
|
|
// 是否是分组作业
|
|
|
|