|
|
|
@ -78,6 +78,12 @@ class CoursesNew extends Component {
|
|
|
|
|
console.log(error);
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
let url = "/courses/new.json"
|
|
|
|
|
axios.get(url).then((result) => {
|
|
|
|
|
console.log(result)
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
|
})
|
|
|
|
|
// console.log(user_school);
|
|
|
|
|
this.props.form.setFieldsValue({
|
|
|
|
|
school:user_school,
|
|
|
|
|