toCreateProject

dev_forum
hjm 5 years ago
parent 20297ed6a2
commit 29b6f6d2cd

@ -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
// 是否是分组作业 // 是否是分组作业

Loading…
Cancel
Save